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.2.tar.gz
(14.5 kB
view hashes)
Built Distribution
topsisGod-0.0.2-py3-none-any.whl
(14.6 kB
view hashes)
Close
Hashes for topsisGod-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43b986a04747b1ccda7127895caa048ba8015d6a064cc8401582ef908c11b4f0 |
|
MD5 | 885c8c1e6f8e6c6ef6c19b14e41faad0 |
|
BLAKE2b-256 | 118bafeb7a7babe05cb8c4e33d70e0882ed5509323269bd5f449977ceeb6f6fb |