semvec/pypi-packages huggingface dataset:
TOPSIS-RONAK-101803137 0.0.1
This package takes a .csv file as input and calculate topsis score of all entries and rank them according to the topsis score
License: MIT
Keywords: topsis,rank,data science

TOPSIS implementation for Multi criteria decision making

The Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) is a multi-criteria decision analysis method, which is based on the concept that the chosen alternative should have the shortest geometric distance from the positive ideal solution (PIS)[4] and the longest geometric distance from the negative ideal solution (NIS).

The package (TOPSIS-RONAK-101803137) contains the python script topsis.py and it further contains the function topsis_score which has to given 4 parameters -

1. Name of input .csv file.
2. Weights of all the attributes in the form of list.
3. Impact of all the parameters(either '+' or '-').
4. Name of output .csv file.

Note - All the column entries should be numeric only.

Example code :

import TOPSIS-RONAK-101803137.topsis
topsis.topsis('inputFile.csv', [1,1,1,1], ['+','+','-','+',],'outputFile.csv')
TOPSIS-Sanyam-101803298 1.0.0
Implementation of TOPSIS
License: MIT

# About Topsis
It is a method of compensatory aggregation that compares a set of alternatives by identifying weights for each criterion, normalising scores for each criterion and calculating the geometric distance between each alternative and the ideal alternative, which is the best score in each criterion. An assumption of TOPSIS is that the criteria are monotonically increasing or decreasing. Normalisation is usually required as the parameters or criteria are often of incongruous dimensions in multi-criteria problems

## Installation
```pip install TOPSIS-Sanyam-101803298```

## How to use it?
Open terminal and type following query
```python topsis input_filename.csv "w1,w2,w3,w4" "i1,i2,i3,i4" result.csv```
w1,w2,w3,w4 represent weights and i1,i2,i3,i4 represent impacts. w1,w2,etc can be in float/integer form while i1,i2,etc can either be '+' or '-'
Also the input_filename.csv has to be provided in the directory in which you will be expecting the result.csv</br>
Rank 1 in the result.csv file will denote the best decision

## License
Â© 2020 Sanyam Jain

This repository is licensed under the MIT license. See LICENSE for details