Implements Topsis
Project description
TOPSIS
Code by: Alamjeet Singh
## What is TOPSIS
TOPSIS stands for ‘The Technique for Order of Preference by Similarity to the Ideal Solution’ is a multi-criteria decision analysis(MCDA) 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 run
Before running, make sure you have pandas installed on your system
Open Terminal and input the following commands
pip install Topsis-Alamjeet-101803728
python
from topsis.topsis1 import topsis topsis("input.csv","1,2,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 Alamjeet Singh
This repository is licensed under the MIT license. See LICENSE for details.
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-Alamjeet-101803728-1.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d00781404f2d323ca4db03d8027f64ecca210e72acca03e010ee7cda67b1d3d |
|
MD5 | 67c054870b4ffbf595ef7ceee0092ca5 |
|
BLAKE2b-256 | 111ef0f2825e8233dac00b211461932b81630b9593a67d207bbf575265cd7f0e |
Hashes for Topsis_Alamjeet_101803728-1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 827baad347517645ba92317faa761b3f8bcd4f530daf47fb70c5092441627448 |
|
MD5 | 49e1f77a3e783ef1d64435e7d2404b61 |
|
BLAKE2b-256 | f0a9f1246f589f0483a8bb53a054ce116c4708ca9747660f42eb8140ec817019 |