Compute Topsis Scores/Ranks of a given csv file
Project description
TOPSIS-Anubhav-101803051
What is TOPSIS
Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) originated in the 1980s as a multi-criteria decision making method.
TOPSIS chooses the alternative of shortest Euclidean distance from the ideal solution, and greatest distance from the negative-ideal solution.
Installation
pip install TOPSIS-Anubhav-101803051
OR
pip3 install TOPSIS-Anubhav-101803051
Input csv format
Input file contain three or more columns
First column is the object/variable name
From 2nd to last columns contain numeric values only
How to use it
Command Prompt
topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>
Example:
topsis inputfile.csv “1,1,1,2” “+,+,-,+” result.csv
Note: The weights and impacts should be ',' seperated, input file should be in pwd.
Sample input data
| 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 |
Sample output data
| Model | Corr | Rseq | RMSE | Accuracy | Topsis Score | Rank |
|---|---|---|---|---|---|---|
| M1 | 0.79 | 0.62 | 1.25 | 60.89 | 0.7731301458119156 | 2 |
| M2 | 0.66 | 0.44 | 2.89 | 63.07 | 0.22667595732024362 | 5 |
| M3 | 0.56 | 0.31 | 1.57 | 62.87 | 0.4389494866695491 | 4 |
| M4 | 0.82 | 0.67 | 2.68 | 70.19 | 0.5237626971836845 | 3 |
| M5 | 0.75 | 0.56 | 1.3 | 80.39 | 0.8128626132980138 | 1 |
License
© 2020 Anubhav Sharma
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file TOPSIS-Anubhav-101803051-1.0.1.tar.gz.
File metadata
- Download URL: TOPSIS-Anubhav-101803051-1.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99a54a669682a446e2754f7a9e5adf222939f5774f0f3fff9db3ffdce03a7217
|
|
| MD5 |
9739b1eaf4cb01e9799b86099d0f76bb
|
|
| BLAKE2b-256 |
dd1a7bc46ed0a87343f53d19a7ad0b5efc9c19937cc66b88195e20731fa5ab5f
|
File details
Details for the file TOPSIS_Anubhav_101803051-1.0.1-py3-none-any.whl.
File metadata
- Download URL: TOPSIS_Anubhav_101803051-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c7dc56bc760850ba789f0dcaf809017a429f39e3c2d3d634c154237798d4ee2
|
|
| MD5 |
df0a616ed76c5c062d00308083a728f0
|
|
| BLAKE2b-256 |
8cfe8e58320530b24a16fb0081a37eb4f75c249caa669a51161584c19016b661
|