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-2.0.0.tar.gz (3.1 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: TOPSIS-Ishika-101803017-2.0.0.tar.gz
  • Upload date:
  • Size: 3.1 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-2.0.0.tar.gz
Algorithm Hash digest
SHA256 b2e21b5022a7c22f76879f54b7f4938d18b2dda05405f8ab53da50cf6eeae8e6
MD5 cd2dabb36946f1773abfae21fd4414a2
BLAKE2b-256 99f2c30d8713e6ca961c07c0fb940910c9343c76f074a5b85329d88e9ba4fe04

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