Skip to main content

A Python package implementing TOPSIS technique.

Project description

Topsis-Pulkit-102003619

Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) originated in the 1980s as a multi-criteria decision making method. It is based on the fundamental premise that the best solution has the shortest distance from the positive-ideal solution, and the longest distance from the negative-ideal one. Alternatives are ranked with the use of an overall index calculated based on the distances from the ideal solutions.

Installation

pip install Topsis-Pulkit-102003619

OR alternatively use

python -m pip install Topsis-Pulkit-102003619

How to use it?

Topsis-Pulkit-102003619 can be used as

In Terminal

Provide the file containing data in CSV Format, Provide corresponding weights and Impacts topsis data.csv "1,0.5,1,0.5" "+,-,+,-" Output.csv


Sample dataset

The decision matrix (a) should be constructed with each row representing a Model alternative, and each column representing a criterion like Fund Name , P1 ,P2 , P3 , P4 , P5.

Model Correlation R2 RMSE Accuracy
M1 0.8 0.64 3.5 37.5
M2 0.86 0.74 3.4 42.2
M3 0.69 0.48 5.7 70
M4 0.65 0.42 5.7 65.5
M5 0.9 0.81 6.6 39.1
M6 0.76 0.58 4 53.5
M7 0.69 0.48 6.2 51.3
M8 0.65 0.42 6 50.2

Output

Row_NO	Performance_score	Rank
1	    0.436737	         7
2	    0.389937	         8
3	    0.565650             4
4	    0.590487	         3
5	    0.522924	         5
6	    0.451344	         6
7	    0.637889	         1
8	    0.635536	         2


The rankings are displayed in the form of a table using a package 'tabulate', with the 1st rank offering us the best decision, and last rank offering the worst decision making, according to TOPSIS method.

License

© 2023 Pulkit

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-Pulkit-102003619-1.0.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Pulkit_102003619-1.0.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Pulkit-102003619-1.0.0.tar.gz.

File metadata

  • Download URL: Topsis-Pulkit-102003619-1.0.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for Topsis-Pulkit-102003619-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9d3b180232d6e0ecabae5e664977be1f8fa7387eedaf046b8f789e8b7a25f60f
MD5 36e9b8e6bc56c081047672fc1231281d
BLAKE2b-256 d0d7bc8f2250a311deaa9fd4b68f25594867ef588734f243763851a938ab1547

See more details on using hashes here.

File details

Details for the file Topsis_Pulkit_102003619-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Pulkit_102003619-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58b2390c3068bc3896e5830ffedafedc5b2306c5672911574c83307009d735f5
MD5 cbc7174c9b4fe170368e31e439325f4d
BLAKE2b-256 2328e6630aed64dc166d6c96d0d696a05f3b990a5baad0f2b57f7c5c809d4913

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