Topsis implementation package
Project description
TOPSIS implementation in python
Project1 for DATA ANALYSIS AND VISUALISATION(UCS633) Nishchay Mahajan COE18 Roll number: 101703377
Output is a dataframe with 3 columns
- Alternatives serial number
- Corresponding performance Score or closeness to ideal solution
- Rank
Installation
pip install topsis-pypck
Upgrade
pip install topsis-pypck --upgrade
To use via command line
python3 topsis.py file.csv "0.25,0.25,0.25,0.25" "-,+,+,+"
To use in python IDLE
>>>from topsis_pypck.topsis import topsis
>>> f= "file.csv"
>>> w = [1,1,1,1]
>>> im = ["+" , "+" , "-" , "+" ]
>>>topsis(f,w,im)
Output
Model Score Rank
------- -------- ------
1 0.534277 3
2 0.308368 5
3 0.691632 1
4 0.534737 2
5 0.401046 4
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
topsis-pypck-0.2.2.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for topsis_pypck-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 795eeaf0fb0b598e3dece09a22b1fd38d826966bbc4c4feefc559c71dd5c0cd7 |
|
MD5 | e3171a3702ac97e1d01cb824d64d5eac |
|
BLAKE2b-256 | 82155204fe29008fcd23a22e3a34bd050712025316a764d214a6fde6297c9e6d |