Skip to main content

A package that calculates Topsis Score and Rank them accordingly

Project description

topsis-python Package Description : Python package for TOPSIS (The Technique for Order of Preference by Similarity to Ideal Solution) ALGORITHM.

Motivation : This is a part of project - I made for UCS633 - Data analytics and visualization at TIET. @Author : Sourav Kumar @Roll no. : 101883068

Algorithm : STEP 1 : Create an evaluation matrix consisting of m alternatives and n criteria, with the intersection of each alternative and criteria. Apply any preprocessing if required.

STEP 2 : The matrix is then normalised using the norm.

STEP 3 : Calculate the weighted normalised decision matrix.

STEP 4 : Determine the worst alternative and the best alternative.

STEP 5 : Calculate the L2-distance between the target alternative i and the worst condition.

STEP 6 : Calculate the similarity to the worst condition.

STEP 7 : Rank the alternatives according to final performance scores.

Getting started Locally : Run On Terminal python -m topsis.topsis <filename.csv> ex. python python -m topsis.topsis topsis.csv 0.25,0.25,0.25,0.25 -,+,+,+

Run In IDLE from topsis import topsis t = topsis.topsis('filepath', [list of weights], [list of impacts]) t.topsis_main()

Run on Jupyter Open terminal (cmd) jupyter notebook Create a new python3 file. If file <filename.csv> doesn't exists, then make sure to upload the file to jupyter env. from topsis import topsis t = topsis.topsis('filepath', [list of weights], [list of impacts]) t.topsis_main()

topsis_main() has been specifically designed to inhibit leakeage of inbuilt functions. topsis_main(debug=True) use this to display all the intermediate matrices. Make sure that filename.csv is in same directory where package is installed. PAPER : Find the research paper at arxiv.

OUTPUT : Prints out overall ml models ranked and the best model / alternative.

output result on jupyter output result on idle output result on cmd

TESTING : The package has been extensively tested on various datasets consisting varied types of expected and unexpected input data and any preprocessing , if required has been taken care of.

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

Parneet26_topsispkg-1.0.4.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file Parneet26_topsispkg-1.0.4.tar.gz.

File metadata

  • Download URL: Parneet26_topsispkg-1.0.4.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.2

File hashes

Hashes for Parneet26_topsispkg-1.0.4.tar.gz
Algorithm Hash digest
SHA256 e41a7ea6c231a128deb8084c79f37cf36d08298aaac3e56dcc1a7ceae77accb2
MD5 4dcf3d80913f44f3d2487805c905dadd
BLAKE2b-256 4dc61afbf260f203332aba4211015fc7e2db40fc43ebf17b0925624682bb6201

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