Skip to main content

Python Package for TOPSIS

Project description

TOPSIS Package in Python

Submitted by : Shivansh Kumar Roll no : 101803103

UCS538


What Is TOPSIS

TOPSIS is an acronym that stands for 'Technique of Order Preference Similarity to the Ideal Solution' and is a pretty straightforward MCDA method. As the name implies, the method is based on finding an ideal and an anti-ideal solution and comparing the distance of each one of the alternatives to those


How To Use

The package TOPSIS-Shivansh-101803103 can be run though the command line as follows:

>> pip install TOPSIS-Shivansh-101803103
>> topsis data.csv "1,1,1,2" "+,+,-,+" result.csv

Note:

  • Usages: topsis data.csv "1,1,1,2" "+,+,-,+" result.csv

  • Input File:

    • Input file contain three or more columns.
    • First column is the object/variable name (e.g. M1, M2, M3, M4...).
    • From 2nd to last columns contain numeric values only.
  • Output File:

    • Result file contains all the columns of input file and two additional columns having Topsis Score and Rank
  • The output is created in the form of csv file and stored and also it is displayed.

  • The impacts given in the command line should be either + or - depending if you want to maximise the column parameter or minimise it.

Sample Input

Here is a sample set of data which can be used for the following package:

ModelCorrelationR2RMSEAccuracy
M10.790.621.2560.89
M20.660.442.8963.07
M30.560.311.5762.87
M40.820.672.6870.19
M50.750.561.380.39

Output of this sample input

The output that will be generated from the following input data will be:

ModelCorrelationR2RMSEAccuracyTopsis ScoreRank
M10.790.621.2560.890.6391330141342582.0
M20.660.442.8963.070.2125918296927795.0
M30.560.311.5762.870.4078456776130514.0
M40.820.672.6870.190.5191532395007473.0
M50.750.561.380.390.8282665851935811.0

Here the ranks are given as rank 1 is the best solution according to the weights and impacts given and rank 5 is the worst solution.


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

TOPSIS-Shivansh-101803103-1.0.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

TOPSIS_Shivansh_101803103-1.0.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file TOPSIS-Shivansh-101803103-1.0.0.tar.gz.

File metadata

  • Download URL: TOPSIS-Shivansh-101803103-1.0.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.2

File hashes

Hashes for TOPSIS-Shivansh-101803103-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0833a7165d0751c006f3d2d62798aa30b66c412854d9094e8f7dca804875d9fd
MD5 4d14f7fe8807a05ccd5e1398ba0c90cc
BLAKE2b-256 42e8bc6fd549b229ba662f156bdc6c254b334d7d982119775c1050c59e66005b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: TOPSIS_Shivansh_101803103-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.2

File hashes

Hashes for TOPSIS_Shivansh_101803103-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2ddbc44736cb7b0a567e6c24b2ef0bffff704706c86bb251d5fad385ce13145
MD5 6b149381fc8223cf5f4f456933e29e9f
BLAKE2b-256 02a35e4bb58b068867788f8820d0c37cfe864a164faa5a3f56250742db4e58fe

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