topsis package
Project description
TOPSIS-Python
Subject : UCS538 Assignment 6
Submitted By: Saumyaa Mathur 101803609
What is TOPSIS
The Technique for Order of Preference by Similarity to Ideal Solution is a multi-criteria decision analysis method.It is a method of compensatory aggregation that compares a set of alternatives by identifying weights for each criterion, normalising scores for each criterion and calculating the geometric distance between each alternative and the ideal alternative, which is the best score in each criterion
How to use this package:
TOPSIS-Saumyaa-101803609 can be run as in the following example:
Usages:
python topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>
Example:
python topsis inputfile.csv “1,1,1,2” “+,+,-,+” result.csv
In Command Prompt
>> topsis data.csv "1,1,1,1" "+,+,-,+" result.csv
In Python IDLE:
from topsis_py.topsis import topsis
topsis('data.csv','1,1,2,2','+,+,-,+','result.csv')
Sample dataset (.csv)
Model | Correlation | R2 | RMSE | Accuracy |
---|---|---|---|---|
M1 | 0.79 | 0.62 | 1.25 | 60.89 |
M2 | 0.66 | 0.44 | 2.89 | 63.07 |
M3 | 0.56 | 0.31 | 1.57 | 62.87 |
M4 | 0.82 | 0.67 | 2.68 | 70.19 |
M5 | 0.75 | 0.56 | 1.3 | 80.39 |
Output file (.csv)
Model | Correlation | R2 | RMSE | Accuracy | Topsis score | Rank |
---|---|---|---|---|---|---|
M1 | 0.79 | 0.62 | 1.25 | 60.89 | 0.77221 | 2 |
M2 | 0.66 | 0.44 | 2.89 | 63.07 | 0.225599 | 5 |
M3 | 0.56 | 0.31 | 1.57 | 62.87 | 0.438897 | 4 |
M4 | 0.82 | 0.67 | 2.68 | 70.19 | 0.523878 | 3 |
M5 | 0.75 | 0.56 | 1.3 | 80.39 | 0.811389 | 1 |
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
Built Distribution
Hashes for TOPSIS-Saumyaa-101803609-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f73464e8ffdc18a9af950fda0173a0d53db90af44c8e6b1bf55cefd7cca19de6 |
|
MD5 | bcee47f7248030647a44fb4ccc9be902 |
|
BLAKE2b-256 | d24598128fe5b91243b8d97f5b7831aefefce81ead399c8841be064bb3eb429f |
Hashes for TOPSIS_Saumyaa_101803609-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e36f25d37ede8156e2dbf30a91af4646a1dfc9de59fd2b33832c392b741c051 |
|
MD5 | 0e07385ff0b44fa494d8f9aa73948c51 |
|
BLAKE2b-256 | 4e41a4381bf038744210699e30704a6ee175bb23fbd423e7dba8df96f1c23b40 |