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> <weights> <impacts>
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.csvis 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.
Metadata
Release files for topsis-python-souravdlboy 2.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| topsis-python-souravdlboy-2.8.tar.gz | 4.6 kB | Without provenance | Details for topsis-python-souravdlboy-2.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| topsis_python_souravdlboy-2.8-py3-none-any.whl | Python 3 | none | any | Details for topsis_python_souravdlboy-2.8-py3-none-any.whl |
Total release size: 10.5 kB
Release files / topsis-python-souravdlboy-2.8.tar.gz
| Download URL | topsis-python-souravdlboy-2.8.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffeea985697bed9a66dc544de6defc3798acc6b9690dcdf00b81a00b01763712
|
|
BLAKE2b-256 checksum How to use checksums |
d19139a2c8f3d401116e6cb9f4622d569d4bcb1db64974b49c6d641f276abb5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.0b5
|
Release files / topsis_python_souravdlboy-2.8-py3-none-any.whl
| Download URL | topsis_python_souravdlboy-2.8-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ab33caaf157ef9bf246979312ec5a7f79cc5b4e6b7576db86b5c39b2dfe7efa
|
|
BLAKE2b-256 checksum How to use checksums |
0547f745a907794204b73dff0fa7e08b36f978e439c55d99d848658ee7c55fd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.0b5
|
Security for topsis-python-souravdlboy 2.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.