Skip to main content

Implementing TOPSIS

Project description

This package is implementation of topsis technique of multi-criteria decision analysis.

You can install this package using following command pip install TOPSIS-Ishika-101803017

This packages will work on command line interface

  • import TOPSIS-Ishika-101803017 as t
  • t.topsis(InputDataFile, Weights, Impacts, resultfile)

Input specifications

  • InputDataFile is path to your input csv file(eg inputfile.csv)
  • weights is string in which each digit represent weight of corresponding column(eg "1,1,1,1")
  • impacts are impacts of column (eg "-,+,+,+" )
  • result is name of output file(eg result.csv)

PRECAUTIONS

No of weights and no of impacts should be equal to no. of columns in dataset excluding the first column Impacts must be either +ve or -ve Input file must contain three or more columns 2nd to last columns contain numeric values only

Result file contains all the columns of input file and two additional columns having TOPSIS SCORE and RANK

EXAMPLE

IF INPUT FILE IS AS FOLLOWS:

Model Correlation 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:

Model Correlation RSeq RMSE Accuracy Topsis Score Rank
M1 0.79 0.62 1.25 60.89 0.639133 2
M2 0.66 0.44 2.89 63.07 0.212592 5
M3 0.56 0.31 1.57 62.87 0.407846 4
M4 0.82 0.67 2.68 70.19 0.519153 3
M5 0.75 0.56 1.3 80.39 0.828267 1

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-Ishika-101803017-1.1.0.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file TOPSIS-Ishika-101803017-1.1.0.tar.gz.

File metadata

  • Download URL: TOPSIS-Ishika-101803017-1.1.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.4

File hashes

Hashes for TOPSIS-Ishika-101803017-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ca2e47c6624e412611209605a8ac2f69e7e1a1129a47cd958c2c5a5425ad7e91
MD5 6f23a0f961b9a36b7464c02167d8d92d
BLAKE2b-256 884b0dadbc9447beb1fccaebfcffcf021c1a8570aa67a63526b2916e7960c199

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