Topsis package to calculate the score and rank of a given data.
Project description
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 |
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
Hashes for TOPSIS-Misha-101803590-2.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ca5c99f6be841fe686b4d70283d8f71ac4b82cd182ee83af0aab9f4fe85ab62 |
|
MD5 | 009e5b4dc56861d1d68ea519e526031c |
|
BLAKE2b-256 | 82a8d41495b2bd7000d1587568a025fce3577e200c6f1a264813b1fc8fab877a |