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-1.0.0.tar.gz
(14.8 kB
view hashes)
Built Distribution
topsisGod-1.0.0-py3-none-any.whl
(14.9 kB
view hashes)
Close
Hashes for topsisGod-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d820cd4defbb234c1176f6e0d427eee4f1300d6d8015546371d7dbf70e09e1ac |
|
MD5 | 6f73f4ef1f87c73f3ecc244e10ae6c19 |
|
BLAKE2b-256 | 83ccf470c30d3004370e773f42aca1e5cb3fc8803591aeea72eb986438493a19 |