Implements Topsis
Project description
TOPSIS
Code by: Lovish Gupta
What is TOPSIS
TOPSIS is an acronym that stands for 'Technique of Order Preference Similarity to the Ideal Solution' and is a pretty straightforward MCDA(Multi-Criteria Decision Analysis) 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.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 Use This Package
Before running, make sure you have pandas installed on your system
Open Command Prompt and input the following commands
pip install Topsis-Lovish-101803496
python
from topsis.topsispac 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 Lovish Gupta
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-Lovish-101803496-1.2.3.tar.gz.
File metadata
- Download URL: Topsis-Lovish-101803496-1.2.3.tar.gz
- Upload date:
- Size: 2.4 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.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed8da2e3764f019e5a6e2339b76138b9dce6a7aa2b41a54d19fd182e1f268520
|
|
| MD5 |
6fce3b633cdde96c1d8dc0bfe1cd6a3e
|
|
| BLAKE2b-256 |
d31ed39d3bf7cf24e0160ebce11451a0a937a3d1f1fa701412fce6204ed59677
|
File details
Details for the file Topsis_Lovish_101803496-1.2.3-py3-none-any.whl.
File metadata
- Download URL: Topsis_Lovish_101803496-1.2.3-py3-none-any.whl
- Upload date:
- Size: 3.1 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.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9c622d64e5b7daa695b1c646bad0eae70f42f27032b4252cc741865ce7a3722
|
|
| MD5 |
3f2a5b8b64f7bb8449de4dccba2bbae5
|
|
| BLAKE2b-256 |
caa611b0235e522db96c1016a5d96d8ac55f9d1258eb4066083a8f0557f73bf4
|