TOPSIS Package in Python
UCS538 Data Science Fundamentals Assignment06 - TOPSIS
Submitted by: Navpreet Singh Kapoor
Roll no: 101803293
Brief About TOPSIS
TOPSIS stands for ‘Technique of Order Preference Similarity to the Ideal Solution’ and is a pretty straightforward MCDA method. As the name implies, the method is based on finding an ideal and an anti-ideal solution and comparing the distance of each one of the alternatives to those.
Installation
Before running, make sure you have pandas installed on your system
>> pip install TOPSIS-navpreet-101803293
Usage
>> python
>>>from topsis_analysis.topsispackage import topsis
>>>topsis("data.csv","1,1,1,2","+,+,-,+","output.csv")
Sample Input
This input was used to test the module
| Model | Corr | Rseq | 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
| Model | Corr | Rseq | RMSE | Accuracy | Topsis Score | Rank |
|---|---|---|---|---|---|---|
| M1 | 0.79 | 0.62 | 1.25 | 60.89 | 0.639133 | 2.0 |
| M2 | 0.66 | 0.44 | 2.89 | 63.07 | 0.212592 | 5.0 |
| M3 | 0.56 | 0.31 | 1.57 | 62.87 | 0.407846 | 4.0 |
| M4 | 0.82 | 0.67 | 2.68 | 70.19 | 0.519153 | 3.0 |
| M5 | 0.75 | 0.56 | 1.3 | 80.39 | 0.828267 | 1.0 |
License
© 2020 Navpreet Singh Kapoor
This repository is licensed under the MIT license. See LICENSE for details.
Release files for Topsis-navpreet-101803293 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Topsis-navpreet-101803293-1.1.3.tar.gz | 2.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Topsis_navpreet_101803293-1.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.6 kB