Skip to main content

Author: Harshit Sharma Version: 0.2

What is Topsis ?

Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) came in the 1980s as a multi-criteria-based decision-making method. TOPSIS chooses the alternative of shortest the Euclidean distance from the ideal solution and greatest distance from the negative ideal solution.

To make this definition easier, let’s suppose you want to buy a mobile phone, you go to a shop and analyze 5 mobile phones on basis of RAM, memory, display size, battery, and price. At last, you’re confused after seeing so many factors and don’t know how to decide which mobile phone you should purchase. TOPSIS is a way to allocate the ranks on basis of the weights and impact of the given factors.

Weights mean how much a given factor should be taken into consideration (default weight = 1 for all factors). like you want RAM to have weighed more than other factors, so the weight of RAM can be 2, while others can have 1. Impact means that a given factor has a positive or negative impact. Like you want Battery to be large as possible but the price of the mobile to be less as possible, so you’ll assign ‘+’ weight to the battery and ‘-‘ weight to the price. This method can be applied in ranking machine learning models on basis of various factors like correlation, R^2, accuracy, Root mean square error, etc. Now that we have understood what is TOPSIS, and where we can apply this. Let’s see what is the procedure to implement TOPSIS on a given dataset, consisting of multiple rows (like various mobile phones) and multiple columns (like various factors).

Installation:

pip install Topsis-Harshit-102003653

How to use?

Open terminal and intall Topsis-Harshit-102003653 and give input data with weights and impacts

Release files for Topsis-Harshit-102003653 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Topsis-Harshit-102003653 0.2
File Size Uploaded
Topsis_Harshit_102003653-0.2.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Topsis-Harshit-102003653 0.2
File Interpreter ABI Platform
Topsis_Harshit_102003653-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 5.7 kB

Release files / Topsis_Harshit_102003653-0.2.tar.gz

Download URL Topsis_Harshit_102003653-0.2.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7a5322cf87636933a8cb1e85749d1b2a1e6236d2afcae67f560df5c9d03270a4
BLAKE2b-256 checksum
How to use checksums
76b923e1c8b4025a57fc93ca874dbce10107184a5c940bb5c6462f67b3a72714
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.2

Release files / Topsis_Harshit_102003653-0.2-py3-none-any.whl

Download URL Topsis_Harshit_102003653-0.2-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0057e4b6c34a95546d49e54e54d5eccb62a7e054ab2aa2da2e4a56ead81addde
BLAKE2b-256 checksum
How to use checksums
03167c8724b28525577cf780a545966445b43650bc10a8b63a6e0773df5d64b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.2

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page