This package can be used to calculate the topsis score of multiple component data and rank them accordingly
Project description
TOPSIS Package in Python
UCS538 Data Science Fundamentals Assignment06 - TOPSIS
Submitted by: Nitish Jain
Roll no: 101803154
Brief About TOPSIS
TOPSIS stands for ‘Technique of Order Preference Similarity to the Ideal Solution’ and is a pretty straightforward MCDA 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.
Installation
Before running, make sure you have pandas installed on your system
>> pip install TOPSIS-Nitish-101803154
Usage
>> python
>>>from topsis_analysis.topsispackage 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 Nitish Jain
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
File details
Details for the file Topsis-Nitish-101803154-1.1.3.tar.gz
.
File metadata
- Download URL: Topsis-Nitish-101803154-1.1.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.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
4c7bdfa2e5fe454df271ef280824636d57cbda6471268eb5615ed16a4636de40
|
|
MD5 |
54bf47feb4092d41814cf0fcf1300e0a
|
|
BLAKE2b-256 |
4be7b4b40f20ee0a93821f0086556a390e87da0bfedcc6eab8edd0b761267fa1
|
File details
Details for the file Topsis_Nitish_101803154-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: Topsis_Nitish_101803154-1.1.3-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
d0c110f63d15cbe5dfdf11bbad5a32adc4790a9f153d665e6b75447f5ad1f4a0
|
|
MD5 |
e919af9b2fbe43e547a3b8950558f0ae
|
|
BLAKE2b-256 |
203c97434660fdc4cdef85417ad5bf320b2f70908166ed42b49c2d5b79fcf078
|