TOPSIS Analysis.
Project description
TOPSIS-Gurjot-401853006
Description
The module is essentially a function in which you enter a CSV file containing the models you wish to choose from, as well as the weights and impacts. The module will output your csv file, along with 2 more columns, one being the TOPSIS score, and the other being the rank of each model as well as create a CSV file with your result.
Installation
Use the package manager pip to install foobar.
pip install TOPSIS-Gurjot-401853006==0.0.1
Usage
>>>python
>>>from Topsis.packagecode import topsis
>>>topsis(path\file_name,weights,impacts,resultant_filename)
The first attribute is a string containning the path to the CSV file you wish to upload which will contain all the models. Requirements for CSV file:
- It should have more than 3 columns
- First column is the object/variable name
- From 2nd to last columns contain numeric values only
The second attribute is a string containing comma seperated weights. Example: "1,1,1,1" The third attribute is a string containing comma seperated impacts. Impacts can only be '+' or '-'. Example: "+,-,-,+"
NUMBER OF WEIGHTS AND IMPACTS MUST EQUAL THE NUMBER OF COLUMNS IN THE INPUT FILE (from 2nd to last columns).
Impacts must be either +ve or -ve.
Impacts and weights must be separated by ‘,’ (comma).
Authors
Gurjot Singh
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-Gurjot-401853006-0.0.1.tar.gz.
File metadata
- Download URL: TOPSIS-Gurjot-401853006-0.0.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93d16bbca5367798d94e8eabf28cbf435e2a540fc7473ca7e0787dbe627d493d
|
|
| MD5 |
e6ea28ee074c54a7a92fe3bb2c368b0c
|
|
| BLAKE2b-256 |
f480390b8f77b4d395fc01b1a6168e51b445fe4c301b2334c995f9d3a5b7f374
|
File details
Details for the file TOPSIS_Gurjot_401853006-0.0.1-py3-none-any.whl.
File metadata
- Download URL: TOPSIS_Gurjot_401853006-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8d6b0748285e01959d6f179409219e857126cdb704865b9b4ccc409f6071df9
|
|
| MD5 |
c2602da052f193980e251086eaf49341
|
|
| BLAKE2b-256 |
17cb24e6eebc5347804535760384d636d4b76e6111db8c327c1bf4da168a39b3
|