Skip to main content

topsis package

Project description

TOPSIS-Python

Subject : UCS538 Assignment 6

Submitted By: Saumyaa Mathur 101803609


What is TOPSIS

The Technique for Order of Preference by Similarity to Ideal Solution is a multi-criteria decision analysis method.It is a method of compensatory aggregation that compares a set of alternatives by identifying weights for each criterion, normalising scores for each criterion and calculating the geometric distance between each alternative and the ideal alternative, which is the best score in each criterion


How to use this package:

TOPSIS-Saumyaa-101803609 can be run as in the following example:

Usages: python topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>
Example: python topsis inputfile.csv “1,1,1,2” “+,+,-,+” result.csv

In Command Prompt

>> topsis_cmd data.csv "1,1,1,1" "+,+,-,+" result.csv

In Python IDLE:

from topsis_py.topsis import topsis
topsis('data.csv','1,1,2,2','+,+,-,+','result.csv')


Sample dataset (.csv)

Model Correlation R2 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 (.csv)

Model Correlation R2 RMSE Accuracy Topsis score Rank
M1 0.79 0.62 1.25 60.89 0.77221 2
M2 0.66 0.44 2.89 63.07 0.225599 5
M3 0.56 0.31 1.57 62.87 0.438897 4
M4 0.82 0.67 2.68 70.19 0.523878 3
M5 0.75 0.56 1.3 80.39 0.811389 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-Saumyaa-101803609-0.0.9.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

TOPSIS_Saumyaa_101803609-0.0.9-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file TOPSIS-Saumyaa-101803609-0.0.9.tar.gz.

File metadata

  • Download URL: TOPSIS-Saumyaa-101803609-0.0.9.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for TOPSIS-Saumyaa-101803609-0.0.9.tar.gz
Algorithm Hash digest
SHA256 bcb8911cd3639080cc7d81c6ceedfe08ec9d6e446e84bd75d191506931c80a33
MD5 28784f2995f82b4f624b219d6d625951
BLAKE2b-256 90690dde270d6bf082ea057c029a0ffacced91ff10051233a3e128ec50801c98

See more details on using hashes here.

File details

Details for the file TOPSIS_Saumyaa_101803609-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: TOPSIS_Saumyaa_101803609-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for TOPSIS_Saumyaa_101803609-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 a45a09e6a530fc69ecc869e0df6a375df973be754816344fb18257953ed7f3e4
MD5 256c4605a1361bf67198b160ca750d89
BLAKE2b-256 dbbdc8b1d3d17a45a38b482062e117f2ff61586598e1356a5c7af64b02b208be

See more details on using hashes here.

Supported by

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