Skip to main content

Calculation of Topsis Score

Project description

Topsis Score Calculation package

pip install topsisGod

from topsisGod import topsis

Input: Three parameters

  1. data: data should contain only integer fields so preprocess the data and temporarily remove the model names
  2. Weights: weight of each attribute, considered to be an integer list
  3. 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)

Uploaded Source

Built Distribution

topsisGod-1.0.0-py3-none-any.whl (14.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page