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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
topsisGod-0.0.3-py3-none-any.whl
(14.6 kB
view hashes)
Close
Hashes for topsisGod-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ae02f74e51407dac33e2457355a11c8bdb8550ef282a6947e582e516ad9730c |
|
MD5 | d319f5488077fdf667e224438b0889dd |
|
BLAKE2b-256 | 5f871f0d8967dcad23b1bc6bcd0964edfe314b14c4af975df524617a8cda4dbd |