Skip to main content

Implements Topsis

Project description

TOPSIS

Code by: Dilshan Sandhu


## 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-Dilshan-101803271
>> 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 Dilshan Sandhu

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-Dilshan-101803271-1.1.3.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Dilshan_101803271-1.1.3-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Dilshan-101803271-1.1.3.tar.gz.

File metadata

  • Download URL: Topsis-Dilshan-101803271-1.1.3.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.3

File hashes

Hashes for Topsis-Dilshan-101803271-1.1.3.tar.gz
Algorithm Hash digest
SHA256 afd8fa341b31e7f46f9fb98be4b2c0f5641f684bfcd9f8243f7a899ac7dc2ad7
MD5 9a8f7c9bf45d573ff35257ec8070ba65
BLAKE2b-256 a9cdcb6ca7ce5870a87a89882598f0ce94f670c5f466d2f5d0419a2ee97e7aa0

See more details on using hashes here.

File details

Details for the file Topsis_Dilshan_101803271-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: Topsis_Dilshan_101803271-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.3

File hashes

Hashes for Topsis_Dilshan_101803271-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b02f4e9fce01514b3d34333755c3106629646fb5d0e574ed83ee98d327f834c5
MD5 4240c4c7b590ea1c443662a11f6419f0
BLAKE2b-256 2e4439265a883d726503aa105272f6b287d47ba6319a177b4b847b5b72840af9

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