Skip to main content

TOPSIS

Code by: Alamjeet Singh


## 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-Alamjeet-101803728

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 Alamjeet Singh

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

Release files for Topsis-Alamjeet-101803728 1.1.3

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-Alamjeet-101803728 1.1.3
File Size Uploaded
Topsis-Alamjeet-101803728-1.1.3.tar.gz 2.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Topsis-Alamjeet-101803728 1.1.3
File Interpreter ABI Platform
Topsis_Alamjeet_101803728-1.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 5.4 kB

Release files / Topsis-Alamjeet-101803728-1.1.3.tar.gz

Download URL Topsis-Alamjeet-101803728-1.1.3.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5d00781404f2d323ca4db03d8027f64ecca210e72acca03e010ee7cda67b1d3d
BLAKE2b-256 checksum
How to use checksums
111ef0f2825e8233dac00b211461932b81630b9593a67d207bbf575265cd7f0e
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/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

Release files / Topsis_Alamjeet_101803728-1.1.3-py3-none-any.whl

Download URL Topsis_Alamjeet_101803728-1.1.3-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
827baad347517645ba92317faa761b3f8bcd4f530daf47fb70c5092441627448
BLAKE2b-256 checksum
How to use checksums
f0a9f1246f589f0483a8bb53a054ce116c4708ca9747660f42eb8140ec817019
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/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

1.1.3 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