TOPSIS
Submitted By: Sarthak Tiwari | 102183051
What is TOPSIS?
Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) originated in the 1980s as a multi-criteria decision making method.
How to install this package:
>> pip install -e .[dev]
After installation, in Command Prompt/Terminal in pwd/current dir:
>> topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>
Weights (weights) may not be normalised but will be normalised in the code.
Note: To avoid errors -
Input file must contain three or more columns.
2nd to last columns must contain numeric values only.
Number of weights, number of impacts and number of columns (from 2 nd to last columns) must
be same.
Impacts must be either +ve or -ve.
Impacts and weights must be separated by ‘,’ (comma).
InputDataFile (data.csv) - an example
The decision matrix should be constructed with each row representing a Model alternative and each column representing a criterion like Correlation, R2, Root Mean Squared Error, Accuracy, etc.
| Model | Corr | Rseq | RMSE | Accuracy |
|---|---|---|---|---|
| M1 | 0.79 | 0.62 | 1.25 | 60.89 |
| M2 | 0.66 | 0.44 | 2.89 | 63.07 |
| M3 | 0.56 | 0.31 | 1.57 | 62.87 |
| M4 | 0.82 | 0.67 | 2.68 | 70.19 |
| M5 | 0.75 | 0.56 | 1.3 | 80.39 |
Output file (result.csv) -
Based on the above input file and setting weights as "1,2,1,1" and impacts as "+,-,-,+".
| Model | Corr | Rseq | RMSE | Accuracy | Topsis Score | Rank |
|---|---|---|---|---|---|---|
| M1 | 0.79 | 0.62 | 1.25 | 60.89 | 0.423744391359611 | 4 |
| M2 | 0.66 | 0.44 | 2.89 | 63.07 | 0.0.467426368298297 | 3 |
| M3 | 0.56 | 0.31 | 1.57 | 62.87 | 0.760230957034903 | 1 |
| M4 | 0.82 | 0.67 | 2.68 | 70.19 | 0.207772533881566 | 5 |
| M5 | 0.75 | 0.56 | 1.3 | 80.39 | 0.504864457803718 | 2 |
The output file contains columns of input file along with two additional columns having Topsis Score and Rank.
Metadata
Release files for 102183051-topsis 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| 102183051-topsis-0.0.1.tar.gz | 16.2 kB | Without provenance | Details for 102183051-topsis-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 102183051_topsis-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for 102183051_topsis-0.0.1-py3-none-any.whl |
Total release size: 31.2 kB
Release files / 102183051-topsis-0.0.1.tar.gz
| Download URL | 102183051-topsis-0.0.1.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91fe6005792b274ebe6c216e467c52a423ce3314ce6aae19d890ce58ca440ec2
|
|
BLAKE2b-256 checksum How to use checksums |
f518cc528da0a6f65592ca99a401676d905447f65ac54f0f22da587a5912e49e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / 102183051_topsis-0.0.1-py3-none-any.whl
| Download URL | 102183051_topsis-0.0.1-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
baac4f5f40a949a7fd59701eb344fc7f2b78eb53449c9a543a9d66f671eeece3
|
|
BLAKE2b-256 checksum How to use checksums |
cf177957001a3a78172fc3eb39e8f062359586887341efeb4aa0511eba872baa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Security for 102183051-topsis 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.