TOPSIS-Python
A command line source code for TOPSIS optimization algorithm in python.
TOPSIS is an algorithm to determine the best choice out of many using Positive Ideal Solution and Negative Ideal Solution.
1.1 Input/Output Files:
• Input File of the form ".csv" • Input file contain three or more columns • First column is the object/variable name (e.g. M1, M2, M3, M4......) o From 2nd to last columns contain numeric values only • Output Files of the form ".csv" • Result file contains all the columns of input file and two additional columns having TOPSIS SCORE and RANK
1.2 Source code as a command line program:
Usages: topsis Example: topsis inputfile.csv “1,1,1,2” “+,+,-,+” result.csv
1.3 SAMPLE INPUT
| 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 |
1.4 SAMPLE OUTPUT
| MODEL | CORR | RSEQ | RMSE | ACCURACY | SCORE | RANK |
|---|---|---|---|---|---|---|
| M1 | 0.79 | 0.62 | 1.25 | 60.89 | 0.7582678375908800 | 2.0 |
| M2 | 0.66 | 0.44 | 2.89 | 63.07 | 0.06794169631733270 | 5.0 |
| M3 | 0.56 | 0.31 | 1.57 | 62.87 | 0.32174656669725500 | 4.0 |
| M4 | 0.82 | 0.67 | 2.68 | 70.19 | 0.5382503509592460 | 3.0 |
| M5 | 0.75 | 0.56 | 1.3 | 80.39 | 0.9587817919266940 | 1.0 |
Release files for TOPSIS-Misha-101803590 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| TOPSIS-Misha-101803590-3.0.0.tar.gz | 3.8 kB | Details |
Release files / TOPSIS-Misha-101803590-3.0.0.tar.gz
| Download URL | TOPSIS-Misha-101803590-3.0.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7bbe376eb8400440dc367a0bd79663b1752ab722a946c6a49064fa3677bb0056
|
|
BLAKE2b-256 checksum How to use checksums |
1b8d9488a7a178013e42361204886d86a650924fe4c8cfe85dd0f0638cfd0d29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|