Skip to main content

Implements Topsis

Project description

TOPSIS

Code by: Lovish Gupta


What is TOPSIS

TOPSIS is an acronym that stands for 'Technique of Order Preference Similarity to the Ideal Solution' and is a pretty straightforward MCDA(Multi-Criteria Decision Analysis) method. As the name implies, the method is based on finding an ideal and an anti-ideal solution and comparing the distance of each one of the alternatives to those.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 Use This Package

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

Open Command Prompt and input the following commands

pip install Topsis-Lovish-101803496

python

from topsis.topsispac import topsis topsis("data.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 Lovish Gupta

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-Lovish-101803496-1.2.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_Lovish_101803496-1.2.3-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Lovish-101803496-1.2.3.tar.gz.

File metadata

  • Download URL: Topsis-Lovish-101803496-1.2.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.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for Topsis-Lovish-101803496-1.2.3.tar.gz
Algorithm Hash digest
SHA256 ed8da2e3764f019e5a6e2339b76138b9dce6a7aa2b41a54d19fd182e1f268520
MD5 6fce3b633cdde96c1d8dc0bfe1cd6a3e
BLAKE2b-256 d31ed39d3bf7cf24e0160ebce11451a0a937a3d1f1fa701412fce6204ed59677

See more details on using hashes here.

File details

Details for the file Topsis_Lovish_101803496-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: Topsis_Lovish_101803496-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using 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.9.0

File hashes

Hashes for Topsis_Lovish_101803496-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a9c622d64e5b7daa695b1c646bad0eae70f42f27032b4252cc741865ce7a3722
MD5 3f2a5b8b64f7bb8449de4dccba2bbae5
BLAKE2b-256 caa611b0235e522db96c1016a5d96d8ac55f9d1258eb4066083a8f0557f73bf4

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