Implementation of TOPSIS
Project description
TOPSIS Implementation by Ansh Gupta 101803121
This package will get topsis score for selected csv file.
Important Details
Input/Output Files:
Input File
-> Input file contain three or more columns
-> First column is the object/variable name (e.g. M1, M2, M3, M4...)
-> From 2nd to last columns contain numeric values only
Output Files -> Result file contains all the columns of input file and two additional columns having TOPSIS SCORE and RANK
The parameters for the topsis functions are as follows: -> The input file name. It must end with .csv or .txt. You can give the complete file path if you want to read a file from some specific place
-> The weights string which is comma seperated for each weight. Example: "1,1,2,3"
-> The impact string which is comma seperated for each impact and determines if weight at that index is to be taken positive or negative. Example: "-,+,+,+"
-> The output file name. It must end with .csv or .txt. You can give the complete path along with file name to save the file at specific place. Otherwise, it will save it as default where the package is installed.
The package has only one function topsis(4 parameters(all necessary else exceptions occur)).
Sample Use case:
import TOPSIS_AnshGupta_101803121 as t
t.topsis("input.csv","1,1,1,1","+,+,+,+","output.csv")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for TOPSIS_Ansh_Gupta_101803121-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4302070155f6311abf25cf43043e48b9d0af009d87290695c95e7c93e6724ce9 |
|
MD5 | 8e9fa1f68f15a84b4f109396dedc3910 |
|
BLAKE2b-256 | 6cc6ef0905667cc9c451d001619be23b1682846404dcf53d5bf9054a21394aaf |