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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file topsisGod-1.0.0.tar.gz.

File metadata

  • Download URL: topsisGod-1.0.0.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for topsisGod-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7b38c3448a41c2b5e4e8aadea517805c25e3f90a2ab5a19ddfaccc25c9ce40ae
MD5 9eb62206993a6a04f1e1e229638509d2
BLAKE2b-256 ab0d0d5297780d3ee96a03722c504165600b598da631cfd870d7b9cc77babc99

See more details on using hashes here.

File details

Details for the file topsisGod-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: topsisGod-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for topsisGod-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d820cd4defbb234c1176f6e0d427eee4f1300d6d8015546371d7dbf70e09e1ac
MD5 6f73f4ef1f87c73f3ecc244e10ae6c19
BLAKE2b-256 83ccf470c30d3004370e773f42aca1e5cb3fc8803591aeea72eb986438493a19

See more details on using hashes here.

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