Skip to main content

A Python package to get toposis rankings for any table.

Project description

UCS633 Project Submission

  • Name - Haymant Mangla
  • Roll no. - 101703228

topsis-hm

topsis-hm 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 topsis-hm

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 -

toposis-hm data.csv -w 1 1 1 1 -i + + - +

You can use the following command for help

topsis-hm -h

For Python IDLE

from topsis-hm.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

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

topsis-hm-1.0.1.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file topsis-hm-1.0.1.tar.gz.

File metadata

  • Download URL: topsis-hm-1.0.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0

File hashes

Hashes for topsis-hm-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b7ee8766575c7a8989964052480b7f17f90cb28e123db9307724a216bba54763
MD5 d8d291c0fafb21e7550c3b8b49dcb130
BLAKE2b-256 63b5268234b4651045a5c9255501d21d4c1c5443b84f203191fb247dbe0321fb

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