A Python Package which creates topsis rankings on the basis of performance scores
Project description
TOPSIS
Python package which allows one to modify a data set by adding TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) scores and ranks to it.
Setup
Install the package using the following command:
pip install Topsis_Mandar_102203163
In order to use the package include the following in your python program :
import topsis as tp
Features
The package currently consists of the following function:
topsis(inputFileName : str, weights : str, impacts : str, resultFileName : str)
- inputFileName : name of your input (.csv) file. For example : "train.csv"
- weights : weights to be applied to each feature of the data set. The number of weights must be equal to the number of features. It must also contain the weights separated by commas in a string. For example, for a data set consisting of 4 features, weights = "1,2,1,1"
- impacts : ideal value for each feature of the data set. The number of impacts must be equal to the number of features. If the value is "+", then a higher value is preferable in the feature. Similarly, if the value if --s "-", then a lower value is more preferable in the feature. Its value must contain the values separated by commas in a string. For example, for a data set consisting of 5 features, impacts = "+,-,+,+"
- resultFileName : File name in which the updated data set containing the respective TOPSIS scores and Ranks must be saved. For example : "train-result.csv".
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file topsis_mandar_102203163-1.0.tar.gz.
File metadata
- Download URL: topsis_mandar_102203163-1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
776f5272d49310a68116643a49427f7d9c2cf46c7090c8f6add7001e640acf5d
|
|
| MD5 |
c040841e6634addfa6ff4219720ceca0
|
|
| BLAKE2b-256 |
2bcda5bc546855505320b7d14b3c4c3e202a9e350aea5e0fb7fcefa5870d6c52
|
File details
Details for the file Topsis_Mandar_102203163-1.0-py3-none-any.whl.
File metadata
- Download URL: Topsis_Mandar_102203163-1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
372d5f3b5823eddcdd021e047514adfbfe752342df3a3a784f4cc9edf5911bc5
|
|
| MD5 |
9ee0699d340308ca1b20df1b595012d7
|
|
| BLAKE2b-256 |
8f7b5701b3b247eef6e220c577388aa72820430dce2be413486e59e03eca75ea
|