Skip to main content

A Python package to get toposis rankings for any table.

Project description

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

MIT

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

kt-toposis-1.0.9.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

kt_toposis-1.0.9-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file kt-toposis-1.0.9.tar.gz.

File metadata

  • Download URL: kt-toposis-1.0.9.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for kt-toposis-1.0.9.tar.gz
Algorithm Hash digest
SHA256 03240b420b93acf34681a5e1bcdd049484f929e58ca21d5a85f32191a227b23c
MD5 62a4b64d84c7b0c62074ff2fcae9067c
BLAKE2b-256 cb4b7aea6f32ae6299effd6acf7d4e8c4b9fdcc17eac47a080d90e72e1ff4761

See more details on using hashes here.

File details

Details for the file kt_toposis-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: kt_toposis-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for kt_toposis-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 b5d0def3d8318b78b50ebe6d3a1e90af1748ebf7938ed1b233a239e38c3d5b6d
MD5 c20d454eba77a6c2d0baf4ffa9a1c359
BLAKE2b-256 7a5847fc2585f5f91d5d25712ed10ae3e01c63388f7acb28318190248a0fb527

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