Skip to main content

A Python package to implement Topsis

Project description

topsis-python

Topsis analysis of a csv file in python

About Topsis

It is a method of compensatory aggregation that compares a set of alternatives by identifying weights for each criterion, normalising scores for each criterion and calculating the geometric distance between each alternative and the ideal alternative, which is the best score in each criterion. An assumption of TOPSIS is that the criteria are monotonically increasing or decreasing. Normalisation is usually required as the parameters or criteria are often of incongruous dimensions in multi-criteria problems

Installation

pip install topsis33

Usage

Query on terminal will provide you the topsis analysis for input csv file.

topsis33 -n "dataset-name.csv" -w "w1,w2,w3,w4,..." -i "i1,i2,i3,i4,..."

w1,w2,w3,w4 represent weights, and i1,i2,i3,i4 represent impacts where 1 is used for maximize and 0 for minimize. Size of w and i is equal to number of features.

Note that the first row and first column of dataset is dropped

Rank 1 signifies best decision

License

MIT

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

topsis33-1.0.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

topsis33-1.0.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: topsis33-1.0.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.19.1 CPython/3.6.8

File hashes

Hashes for topsis33-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c40cfeba37a5d7c9ef87c20c29fda003458397c291836adbd1b43addc33723a2
MD5 5de208d9892c6e0b0b6827f570be581e
BLAKE2b-256 342b2af08ef9530add8da747122229c27348d9e8c487243e1beb0a8fa7b4b0be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: topsis33-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.19.1 CPython/3.6.8

File hashes

Hashes for topsis33-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24e16ca4f6a1d18508e4dac223f0df9089e7f04c6e7c1d223e1fbd27b7ba543c
MD5 96907a19eaf6be4050aea12c560af0d6
BLAKE2b-256 9a8eed26f0b0951ac628aa15d7732b37fdc9f1634bc893689832a63ac1820276

See more details on using hashes here.

Supported by

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