Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TOPSIS-Misha-101803590-3.0.0.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file TOPSIS-Misha-101803590-3.0.0.tar.gz.

File metadata

  • Download URL: TOPSIS-Misha-101803590-3.0.0.tar.gz
  • Upload date:
  • Size: 3.8 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

Hashes for TOPSIS-Misha-101803590-3.0.0.tar.gz
Algorithm Hash digest
SHA256 7bbe376eb8400440dc367a0bd79663b1752ab722a946c6a49064fa3677bb0056
MD5 752a0d43ba0a101b444e861103da6760
BLAKE2b-256 1b8d9488a7a178013e42361204886d86a650924fe4c8cfe85dd0f0638cfd0d29

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page