We are calculating performances scores for each models which would be ranked and best model is considered
Project description
TOPSIS
The Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) is a multi-criteria decision analysis method. It is based on the concept that the chosen alternative should have the shortest geometric distance from the positive ideal solution (PIS) and the longest geometric distance from the negative ideal solution (NIS).
Necessary installments
- Pandas should be pre-installed.
Check Source
Input file checked if it is available in the system or if the format is supported.
Check weight
Weight must be entered as a string and should contain numeric values only and values must be seperated by ','. This function returns if the syntax is appropriate.
Check impact
Impact must be entered as a string and should contain either values '+' or '-' only and values must be seperated by ','. This function returns if the syntax is appropriate.
Square and divide
A normalised table is received with values which are calculated as every element in each collumn is squared and added following which square root of the obtained value is calculated which is further divided by the original elements in each column.
multiply weightage
Each column is assigned a weightage and corresponding values are multiplied by this value. Syntax is first checked following which each column is multiplied by its corresponding weight.
best worst value
Maximum and minimum value for each value is found using this function and according to the impact best value is assigned the maximum or the minimum value
topsis score
In this function we can calculate the performance scores for each item. Here first each value in the row is subtracted from its corresponding best value and squared and added with the other elements calculated in the same way. Similarly the original elements are also subtracted from the worst value and same calculations are carried. Then the values obtained from both the calculations are added and the second calculation value obtained is divided by this calculated value and we get our performance score and this is done for all rows.
rank
In this function all rows are assigned a rank according to their performance/topsis score.
License
MIT
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
File details
Details for the file TOPSIS_Snehal_101803036-0.1.tar.gz.
File metadata
- Download URL: TOPSIS_Snehal_101803036-0.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a3616b0a18701e5ed9855c7194ceadd1c94c1d701da8810b1eab258937b8b5a
|
|
| MD5 |
529a4296db8574d8c9187dcc0a88b950
|
|
| BLAKE2b-256 |
56b89fd8777bf069cd49980ebf6cf771d1d8af988e6de841d6abc4e49cf0f3ad
|