Calculation of Topsis Score
Project description
Topsis Score Calculation package
pip install topsisGod
from topsisGod 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)
Github link : GitHub
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.7.tar.gz
(14.6 kB
view hashes)
Built Distribution
topsisGod-0.0.7-py3-none-any.whl
(14.7 kB
view hashes)
Close
Hashes for topsisGod-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f702177e1633897cf94d2a037d0fb38c5924fb2cb8e89a3ffe4f8f6d0372cbcd |
|
MD5 | e31cd74407044d1833d9f3ff50458583 |
|
BLAKE2b-256 | 9d21f88dc345541a0d21aa92bb291b08bb82d8359a789b4017e2f3efffcefc80 |