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:
score = topsis(data, w, i)
from topsisGod import rerank
rerank(data,score)
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.9.tar.gz
(14.7 kB
view hashes)
Built Distribution
topsisGod-0.0.9-py3-none-any.whl
(14.8 kB
view hashes)
Close
Hashes for topsisGod-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ccce6be79f25a41e5b2b966a5806b749b7ed8b4e5250fca06d09cb6564719d0 |
|
MD5 | 894cf506268d5cae0bb58824b98d2657 |
|
BLAKE2b-256 | 477addfbf392facb923ea562b0e99d9e8fa960f00cf077c785f8058230a09b91 |