UCS633 Project Submission
- Name - Kartikey Tiwari
- Roll no. - 101703282
kt-toposis
kt-toposis is a Python package for displaying ranking of all criteria using Topsis technique to get good computational efficiency and ability to measure the relative performance for each alternative in a simple mathematical form.
Topsis Description
Technique for Order Preference by Similarity to an Ideal Solution (TOPSIS) is one of the multi-criteria models in making decision which is known for its simplicity, rationality, comprehensibility and good computational efficiency. Multi-criteria decision making (MCDM) refers to making choice of the best alternative from among a finite set of decision alternatives in terms of multiple, usually conflicting criteria.
Getting Started
These instructions will help you to install and use this package for general use.
Prerequisites
Your csv file should not have categorical data
Installation
Use the package manager pip to install foobar.
pip install kt-toposis
Usage
You can import it either in Python IDLE or run directly through command prompt
For Command Prompt
If you want to use this package on "data.csv" file with 4 columns. You need to change the directory where "data.csv" is stored then. Here -w represents weights which signifies weight of each feature or column in our dataset and -i represents impacts which signifies impact of each column or feature in our data. If a feature is good we will use + to denote else we will use -
kt-toposis data.csv -w 1 1 1 1 -i + + - +
You can use the following command for help
kt-toposis -h
For Python IDLE
from kt_toposis.topsis import top
top(X,weights,impacts)
#X should be a matrix
#impacts should be a list of string + for positive impact - for negative impact
#weights should be a list of int or float
Sample dataset
| Singer ID | Sur | Taal | Laaye | Pitch | Pace |
|---|---|---|---|---|---|
| S1 | 0.79 | 0.62 | 1.25 | 60.89 | 11 |
| S2 | 0.66 | 0.44 | 2.89 | 3.07 | 20 |
| S3 | 0.56 | 0.31 | 1.57 | 62.87 | 16 |
| S4 | 0.82 | 0.67 | 2.68 | 70.19 | 16 |
| S5 | 0.75 | 0.56 | 1.3 | 80.39 | 20 |
kt-toposis Book1.csv -w 1 1 1 1 1 -i + + + + +
Result
Topsis Selection
Models | Rank
-----------------------
1 | 3
2 | 5
3 | 4
4 | 1
5 | 2
Successfully executed
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Release files for kt-toposis 1.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kt-toposis-1.0.9.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kt_toposis-1.0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.2 kB
Release files / kt-toposis-1.0.9.tar.gz
| Download URL | kt-toposis-1.0.9.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03240b420b93acf34681a5e1bcdd049484f929e58ca21d5a85f32191a227b23c
|
|
BLAKE2b-256 checksum How to use checksums |
cb4b7aea6f32ae6299effd6acf7d4e8c4b9fdcc17eac47a080d90e72e1ff4761
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Release files / kt_toposis-1.0.9-py3-none-any.whl
| Download URL | kt_toposis-1.0.9-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b5d0def3d8318b78b50ebe6d3a1e90af1748ebf7938ed1b233a239e38c3d5b6d
|
|
BLAKE2b-256 checksum How to use checksums |
7a5847fc2585f5f91d5d25712ed10ae3e01c63388f7acb28318190248a0fb527
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|