A Python pip package to apply topsis approach to rank the entries in a dataset
Project description
TOPSIS_Shruti_101803512
What is TOPSIS ?
The Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) is a multi-criteria decision analysis method
How to use the package
TOPSIS_Shruti_101803512 package should be used as:
In command prompt
>> pip install TOPSIS_Shruti_101803512
>> python >> import TOPSIS_Shruti_101803512 as t >> t.topsis_evaluation(,,,) >> t.topsis_evaluation("data.csv","1,1,1,2","+,+,-,+","result.csv")
Some instructions:
• Input file must contain three or more columns. • From 2nd to last columns must contain numeric values only (Handling of non-numeric values) • Number of weights, number of impacts and number of columns (from 2nd to last columns) must be same. • Impacts must be either +ve or -ve. • Impacts and weights must be separated by ‘,’ (comma).
Example:
The dataset upon which topsis is to be performed is taken as folows. It will be in the form of a csv file.
Sample Input
| 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 |
The following output with performance score and rank will be produced in a result(csv file) file and printed as output. 1st rank offering us the best decision, and last rank offering the worst decision making, according to TOPSIS method.
OUTPUT
| Model | Corr | Rseq | RMSE | Accuracy | Topsis Score | Rank |
|---|---|---|---|---|---|---|
| M1 | 0.79 | 0.62 | 1.25 | 60.89 | 0.6391330141342587 | 2 |
| M2 | 0.66 | 0.44 | 2.89 | 63.07 | 0.21259182969277918 | 5 |
| M3 | 0.56 | 0.31 | 1.57 | 62.87 | 0.4078456776130516 | 4 |
| M4 | 0.82 | 0.67 | 2.68 | 70.19 | 0.5191532395007472 | 3 |
| M5 | 0.75 | 0.56 | 1.3 | 80.39 | 0.8282665851935813 | 1 |
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_Shruti_101803512-1.tar.gz.
File metadata
- Download URL: TOPSIS_Shruti_101803512-1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8c32167eff2096e41dc52c74080698aae24113d8581753f5cb173438788c243
|
|
| MD5 |
5dc97781febbce50b879d11b645fcea8
|
|
| BLAKE2b-256 |
a8ec5d608c86196d4c734cee1e61cae1b73e53059d82ff1be2549d03d5a6db9d
|
File details
Details for the file TOPSIS_Shruti_101803512-1-py3-none-any.whl.
File metadata
- Download URL: TOPSIS_Shruti_101803512-1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af96d837be21012d611b1ce4ea60caf628bab34ccb787e4b175fc7067b4c1283
|
|
| MD5 |
d90defa20a7b69211d4c736d218ac69a
|
|
| BLAKE2b-256 |
50303fdfe3bfa3eae9719513821f20dd11e66e21363f52b0b35861b159da6a94
|