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.4.tar.gz
(14.5 kB
view hashes)
Built Distribution
topsisGod-0.0.4-py3-none-any.whl
(14.6 kB
view hashes)
Close
Hashes for topsisGod-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 627bd65efd5b89a4615304019fc927864f15c6b3ee23f3fb7ac157d7e778a151 |
|
MD5 | 7e97eaeebc7754cab37013af01e624eb |
|
BLAKE2b-256 | 92e6895db7d3dd75e69b6d0d9b0f02b720baf78d897a97f442da02bb5211039b |