Skip to main content

Implements Topsis

Project description

TOPSIS

Code by: Harmeet 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-Harmeet-101803104

python

from topsis.topsis69 import topsis topsis("input.csv","1,1,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 Harmeet Singh

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-Harmeet-101803104-1.1.1.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Harmeet_101803104-1.1.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Harmeet-101803104-1.1.1.tar.gz.

File metadata

  • Download URL: Topsis-Harmeet-101803104-1.1.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for Topsis-Harmeet-101803104-1.1.1.tar.gz
Algorithm Hash digest
SHA256 d07b4f8982e4fcce26de3e6cad4b2fbeeedef6e08a2fccc9aad9b7a97b5c5dad
MD5 21c2c89ba625b5d4afdee67cac43a61d
BLAKE2b-256 607f0c00b73b3a299a551bbc70c37a11811496281100d2733d5338522a3a768b

See more details on using hashes here.

File details

Details for the file Topsis_Harmeet_101803104-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: Topsis_Harmeet_101803104-1.1.1-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.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for Topsis_Harmeet_101803104-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a06640dd76c37a298f25e5ce6f375d0bad9ec9b37129eab095b2bb5bd7ed24cf
MD5 bd73d24c8b5d2d980555b3372f271454
BLAKE2b-256 291da4749890d42c6979bc82b400c506a697bb0a383dcd75d8b139e62a2aa84b

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