Skip to main content

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.

Release files for TOPSIS-Prabsimran-401803036 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TOPSIS-Prabsimran-401803036 1.0.1
File Size Uploaded
TOPSIS-Prabsimran-401803036-1.0.1.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for TOPSIS-Prabsimran-401803036 1.0.1
File Interpreter ABI Platform
TOPSIS_Prabsimran_401803036-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.8 kB

Release files / TOPSIS-Prabsimran-401803036-1.0.1.tar.gz

Download URL TOPSIS-Prabsimran-401803036-1.0.1.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
040d2dff5aaba9a5a8e55a7e0ab7e1d6e0e82436249558672138b030fba7fe84
BLAKE2b-256 checksum
How to use checksums
ca81034d01424f81a349e8468e81ec9dbc43983e95ce85e1bb2b938183df5175
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / TOPSIS_Prabsimran_401803036-1.0.1-py3-none-any.whl

Download URL TOPSIS_Prabsimran_401803036-1.0.1-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1021ea1f933cd35e908bc610ae55e40fab1e2f9568ef1b6cf8c3e682ca0602f5
BLAKE2b-256 checksum
How to use checksums
d944cbb2f46581ded0ceab0b0ce1bf01bd9ffecf20c4bb450ecce22030063139
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page