TOPSIS ranking and interpretation using WMSD-space
Project description
TOPSIS ranking and interpretation using WMSD-space
This repository hosts the code for MSDTransformer - a scikit-learn compatible python library, that lets you create TOPSIS rankings of alternatives, visualize rankings in WMSD space, and get suggestions for improvement actions.
Requirements
MSDTransformer uses PySCIPOpt to determine exact WMSD boundaries quickly. If you use conda, you should be fine performing the follwoing command (easier option):
conda install --channel conda-forge pyscipopt
If you use PyPI, then you will need a working installation of the SCIP Optimization Suite (harder option, but might run faster). Please, make sure that your SCIP installation works, before installing MSDTransformer. For more details on how to install SCIP, please refer to the PySCIPOpt documentation.
After installing PySCIPOpt (or if you already have SCIP installed), you can install the other dependencies by running:
pip install -r requirements.txt
Installation
Once you have all the dependencies, you can install MSDTransformer from source. To do so, clone the repository and run the following command in the root directory of the repository:
pip install .
Quickstart
import pandas as pd
from MSDTransformer import MSDTransformer
df = pd.read_csv("../data/students.csv", sep=';', index_col= 0)
students_transformer = MSDTransformer("R") # Relative distance
students_transformer.fit(df, expert_range=[[0,100],[1,6],[1,6]])
students_transformer.transform(df)
students_transformer.show_ranking()
students_transformer.plot()
Citation
If you use this project in your research, please consider citing the following papers:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file wmsd-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: wmsd-1.0.0-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81579808e32eba923b85499d16a4e049f64775b6b8cd703de882c17f96e65884 |
|
MD5 | 9986d3908d8b99c6faf5443579f35b4e |
|
BLAKE2b-256 | 6a5dc92cb562c7671d1b9ae72beb8289bd9640870eb860b9ca92c4b5852012ca |