Skip to main content

Package for Multiple-criteria decision-making using TOPSIS.Requires input file,weights and impacts. Returns dataframe with score and rank of every label.This package can help improve decision-making.

Project description

Topsis

What is TOPSIS

Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) originated in the 1980s as a multi-criteria decision making method. TOPSIS chooses the alternative of shortest Euclidean distance from the ideal solution, and greatest distance from the negative-ideal solution.

Purpose

Package for Multiple-criteria decision-making using TOPSIS. Requires input file,weights and impacts. Returns a data frame which has score and rank of every label. This package can help improve decision-making.

Use the package manager pip to install Topsis-Mitul-101803084.

pip install Topsis-Mitul-101803084

Usage

from TOPSIS_Mitul_101803084 import Topsis_rank
Topsis_rank("input.csv","1,1,1,2","+,+,+,-")
# Outputs a dataframe with score and rank columns
from TOPSIS_Mitul_101803084 import Topsis_rank
# if output file name is provided,output file is saved in your current directory
Topsis_rank("input.csv","1,1,1,2","+,+,+,-","output.csv")
# Dataframe named output.csv will be saved in your current directory.

Things to take care

  1. Weights and Impacts provided as arguments should be separated by comma's and equal to number of numerical columns.
  2. Categorical columns are not supported yet. They should be dropped or feature engineered into numerical columns using techniques like One Hot encoding etc.
  3. First column should be label column.

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

TOPSIS_Mitul_101803084-0.0.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file TOPSIS_Mitul_101803084-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: TOPSIS_Mitul_101803084-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for TOPSIS_Mitul_101803084-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4b13a915418d520f49dbc679ccf5de3886126e6367f947e9aff0e62f56fe3408
MD5 5e13a6018c487a550c2b10282d84fe82
BLAKE2b-256 0892e052254368876e9639fff8584c7bfb74d3b575c481922377bb2859b0d50f

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