A Python package implementing TOPSIS technique.
Project description
Topsis-Pulkit-102003619
Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) originated in the 1980s as a multi-criteria decision making method. It is based on the fundamental premise that the best solution has the shortest distance from the positive-ideal solution, and the longest distance from the negative-ideal one. Alternatives are ranked with the use of an overall index calculated based on the distances from the ideal solutions.
Installation
pip install Topsis-Pulkit-102003619
OR alternatively use
python -m pip install Topsis-Pulkit-102003619
How to use it?
Topsis-Pulkit-102003619 can be used as
In Terminal
Provide the file containing data in CSV Format, Provide corresponding weights and Impacts
topsis 102003619-data.csv "1,0.5,1,0.5" "+,-,+,-" 102003619-Output.csv
Sample dataset
The decision matrix (a) should be constructed with each row representing a Model alternative, and each column representing a criterion like Fund Name , P1 ,P2 , P3 , P4 , P5.
| Model | Correlation | R2 | RMSE | Accuracy |
|---|---|---|---|---|
| M1 | 0.8 | 0.64 | 3.5 | 37.5 |
| M2 | 0.86 | 0.74 | 3.4 | 42.2 |
| M3 | 0.69 | 0.48 | 5.7 | 70 |
| M4 | 0.65 | 0.42 | 5.7 | 65.5 |
| M5 | 0.9 | 0.81 | 6.6 | 39.1 |
| M6 | 0.76 | 0.58 | 4 | 53.5 |
| M7 | 0.69 | 0.48 | 6.2 | 51.3 |
| M8 | 0.65 | 0.42 | 6 | 50.2 |
Output
Row_NO Performance_score Rank
1 0.436737 7
2 0.389937 8
3 0.565650 4
4 0.590487 3
5 0.522924 5
6 0.451344 6
7 0.637889 1
8 0.635536 2
The rankings are displayed in the form of a table using a package 'tabulate', with the 1st rank offering us the best decision, and last rank offering the worst decision making, according to TOPSIS method.
License
© 2023 Pulkit
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-Pulkit-102003619-1.0.1.tar.gz.
File metadata
- Download URL: Topsis-Pulkit-102003619-1.0.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2232df805ccc848a72b21a0f20cdb81ad2377d1a389d9533d71e856265d3986
|
|
| MD5 |
92b4f044a0300350d2a56fa81e043d01
|
|
| BLAKE2b-256 |
41461ec5539cdc919defe2b4fe8bcba97781b0d8c087efec69df3f255d309abb
|
File details
Details for the file Topsis_Pulkit_102003619-1.0.1-py3-none-any.whl.
File metadata
- Download URL: Topsis_Pulkit_102003619-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06d1a54df96f13f0a707509fbda4f6d5c1a7122be24921734cb4021b54a9f31a
|
|
| MD5 |
9ce2edcdb60049faed830d0f11d106a4
|
|
| BLAKE2b-256 |
76e86ff86782e9776bb5561072313932adc92b2e8673c3a715444be72ccab505
|