Calculation of Topsis Score
Project description
Topsis Score Calculation package
from topsis import topsis
Input: Three parameters
- data: data should contain only integer fields so preprocess the data and temporarily remove the model names
- Weights: weight of each attribute, considered to be an integer list
- Impact: Considered to be a character list
Weight = [1, 1, 1, 1]
Impact = ['+', '-', '-', '+']
Output: Returns the score of each row
To calculate the rank based on the score, append the score list as:
data['Score'] = topsis(data, w, i)
data['Rank'] = data['Score'].rank(method = 'max', ascending = False)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
topsisGod-0.0.5.tar.gz
(14.5 kB
view hashes)
Built Distribution
topsisGod-0.0.5-py3-none-any.whl
(14.6 kB
view hashes)
Close
Hashes for topsisGod-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8772524f591cb2d180b9952e7018b0b8c58636bfe03d5dacc91f33bb40957914 |
|
MD5 | 87eee84edf90de770383818a10f14dc3 |
|
BLAKE2b-256 | f25fae1c6fcbc509e6ad234b9237620c207a254f3fbdb7b5284edb33213b7f52 |