Skip to main content

Package for Multiple-criteria decision-making using TOPSIS.

Project description

TOPSIS_AnmoldeepSingh_101983056

What is TOPSIS

The Technique for Order of Preference by Similarity to Ideal Solution is a multi-criteria decision analysis method, which was originally developed by Ching-Lai Hwang and Yoon in 1981 with further developments by Yoon in 1987, and Hwang, Lai and Liu in 1993.

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_AnmoldeepSingh_101983056.

pip install TOPSIS_AnmoldeepSingh_101983056

Usage

from TOPSIS_AnmoldeepSingh_101983056 import rank_score_Topsis
Topsis_rank("input.csv","1,1,1,2","+,+,+,-")
# Outputs a dataframe with score and rank columns
from TOPSIS_AnmoldeepSingh_101983056 import rank_score_Topsis
# 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.

Note

  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


Release history Release notifications | RSS feed

This version

0.2

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_Anmoldeep_101983056-0.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file TOPSIS_Anmoldeep_101983056-0.2-py3-none-any.whl.

File metadata

  • Download URL: TOPSIS_Anmoldeep_101983056-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.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for TOPSIS_Anmoldeep_101983056-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3428c26ef16b660178822011575a99556b45324b8b0036bc4a04bb588ffb2074
MD5 4952d3accf7e64849354aa9c32cf6977
BLAKE2b-256 a6a2194f5dca67c783c92d4927475f59c9df3a85d5aa37ac5f6973c224bd6f1e

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