Skip to main content

This package can be used to calculate the topsis score of multiple component data and rank them accordingly

Project description

TOPSIS Package in Python

Submitted by: Girish Gupta

Roll no: 102003323


TOPSIS

TOPSIS is an acronym that stands for Technique of Order Preference Similarity to the Ideal Solution and is a pretty straightforward MCDA 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.


How to use

The package Topsis-Girish-102003323 can be run though the command line as follows:

>> pip install Topsis-Girish-102003323
>>python topsis data.csv "1,1,1,1" "+,+,-,+" result.csv

Sample Input

The decision matrix should be constructed with each row representing a Model alternative, and each column representing a criterion like Accuracy, R2, Root Mean Squared Error, Correlation, and many more.

ModelCorrelationR2RMSEAccuracy
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

Weights `weights` is not already normalised will be normalised later in the code.

Information of benefit positive(+) or negative(-) impact criteria should be provided in impacts.

Output of this sample input

The output that will be generated from the following input data will be:

ModelCorrelationR2RMSEAccuracyTopsis ScoreRank
M10.790.621.2560.890.77220973456127882.0
M20.660.442.8963.070.225598754264133675.0
M30.560.311.5762.870.438897317280186054.0
M40.820.672.6870.190.52387787127291143.0
M50.750.561.380.390.81138870824299791.0

The output file contains columns of input file along with two additional columns having **Topsis_score** and **Rank** . Here the ranks are given as rank 1 is the best solution according to the weights and impacts given and rank 5 is the worst solution.

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-Girish-102003323-0.1.5.tar.gz (4.1 kB view details)

Uploaded Source

Built Distributions

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

Topsis_Girish_102003323-0.1.5-py3.9.egg (6.2 kB view details)

Uploaded Egg

Topsis_Girish_102003323-0.1.5-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Girish-102003323-0.1.5.tar.gz.

File metadata

  • Download URL: Topsis-Girish-102003323-0.1.5.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.4

File hashes

Hashes for Topsis-Girish-102003323-0.1.5.tar.gz
Algorithm Hash digest
SHA256 12d47f098d5fee0202ea612274de495a54ceec0a415f7c69c54472442ce670b4
MD5 d5d04122a6d2d018f3d4e3bb384ca625
BLAKE2b-256 b00436b3b30c7a80f626d66117f7472de2a629ec81c575a47d5eaffddf31fa1d

See more details on using hashes here.

File details

Details for the file Topsis_Girish_102003323-0.1.5-py3.9.egg.

File metadata

File hashes

Hashes for Topsis_Girish_102003323-0.1.5-py3.9.egg
Algorithm Hash digest
SHA256 2157b6b519a178d198e137eaab66b2ecafa5497cb21e15c4af156351b6e98e25
MD5 35aac53e21843e2482f69ab1d4a10587
BLAKE2b-256 ec7b4d9aaeeedd22e4db7ec3a2af7fcfd7288a4a75e50acbf67cc95d42d5c132

See more details on using hashes here.

File details

Details for the file Topsis_Girish_102003323-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Girish_102003323-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e0b22167b289a81e4f84e771c3bc62f4fccb867a86a124398a0a62c84e4165a7
MD5 1754813b805ee8159de7c1855343a2fd
BLAKE2b-256 8b4792e108bfe2559c2044478ca7d255c27cd9c337bb4414ddc82aab447dec0e

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