Skip to main content

Python Package for TOPSIS

Project description

TOPSIS

Code by: PrabsimranKaur


## What is TOPSIS

TOPSIS stands for ‘The Technique for Order of Preference by Similarity to the Ideal Solution’ is a multi-criteria decision analysis(MCDA) method. 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.

How to run

Before running, make sure you have pandas installed on your system

Open Terminal and input the following commands

pip install Topsis-Prabsimran-401803036

python

from topsis.topsis1 import topsis topsis("input.csv","1,2,1,2","+,+,-,+","output.csv")

Sample Input

This input was used to test the module

ModelCorrRseqRMSEAccuracy
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

ModelCorrRseqRMSEAccuracyTopsis ScoreRank
M10.790.621.2560.890.6391332.0
M20.660.442.8963.070.2125925.0
M30.560.311.5762.870.4078464.0
M40.820.672.6870.190.5191533.0
M50.750.561.380.390.8282671.0

License

© 2020 PrabsimranKaur

This repository is licensed under the MIT license. See LICENSE for details.

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-Prabsimran-401803036-1.0.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

TOPSIS_Prabsimran_401803036-1.0.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file TOPSIS-Prabsimran-401803036-1.0.1.tar.gz.

File metadata

  • Download URL: TOPSIS-Prabsimran-401803036-1.0.1.tar.gz
  • Upload date:
  • Size: 4.4 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.0

File hashes

Hashes for TOPSIS-Prabsimran-401803036-1.0.1.tar.gz
Algorithm Hash digest
SHA256 040d2dff5aaba9a5a8e55a7e0ab7e1d6e0e82436249558672138b030fba7fe84
MD5 ef47dd8f71005cf5de832f516f593f1e
BLAKE2b-256 ca81034d01424f81a349e8468e81ec9dbc43983e95ce85e1bb2b938183df5175

See more details on using hashes here.

File details

Details for the file TOPSIS_Prabsimran_401803036-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: TOPSIS_Prabsimran_401803036-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.0

File hashes

Hashes for TOPSIS_Prabsimran_401803036-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1021ea1f933cd35e908bc610ae55e40fab1e2f9568ef1b6cf8c3e682ca0602f5
MD5 7e57f1bf068540a57b4838bc46a791f2
BLAKE2b-256 d944cbb2f46581ded0ceab0b0ce1bf01bd9ffecf20c4bb450ecce22030063139

See more details on using hashes here.

Supported by

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