Python program using TOPSIS to calculate ranks based on data, weights and impacts
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Topsis_Harshit_102003653-0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a5322cf87636933a8cb1e85749d1b2a1e6236d2afcae67f560df5c9d03270a4 |
|
MD5 | 302af611666a42c5d9b0e1cfa9a6c69c |
|
BLAKE2b-256 | 76b923e1c8b4025a57fc93ca874dbce10107184a5c940bb5c6462f67b3a72714 |
Hashes for Topsis_Harshit_102003653-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0057e4b6c34a95546d49e54e54d5eccb62a7e054ab2aa2da2e4a56ead81addde |
|
MD5 | 18395ff42c4957e8f4799e401675717d |
|
BLAKE2b-256 | 03167c8724b28525577cf780a545966445b43650bc10a8b63a6e0773df5d64b4 |