Topsis Package
Project description
TOPSIS PACKAGE
BY ROHIT JAIN
ROLL: 101903706
SUBJECT: PREDICTIVE ANALYSIS
Instalation of the package:
Install the package using the commnd pip install Topsis-Rohit-101903706
Import the package:
After creating python file with any name, here mypackage.py
where you need to use topsis package, Use folowing commands to import te package:
varName = __import__('topsis')
Here you can use any variable name to store te package- Call the package with command
varName.topsis()
Now Save your python file.
Get Results
Make sure you have your input file in the same directory with python file mypackage.py
Using comand line, use the package as:
python myPackage.py inputData.csv weights Impats outputFile.csv
Here weights is the string with weights of each column in inputData. e.g., "1,2,3,4"
for input with 4 features.
Impacts is the string represting impact on each feature with '+' sign representing maximum and '-' sign representing minimum
e.g., "+,-,-,-"
for input with 4 features
outputFileName.csv should have the name of the file you want to create eith output data stored.
Happy Coding!
Common Mistakes:
- inputData.csv file not in same directory as myPackage.py file.
- While running Command, your input arguments are less than 4. Make sure to have all 4 arguments consiting inputData.csv weights impacts outputFile.csv respectively.
- Weigts or impacts are not a string
- inputData comtains empty cells
- Columns in input less than 3
For any doubts mail me at rjain1_be19@thapar.edu . I will be happy to help.
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
File details
Details for the file Topsis-Rohit-101903706-1.0.1.tar.gz
.
File metadata
- Download URL: Topsis-Rohit-101903706-1.0.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
68dd7cf30d9157edd6566f5ffa595acc79dba61f8374b178e6797050c27a3b8a
|
|
MD5 |
d3f3a8c0d9210f29ebddf2d6ffd264e9
|
|
BLAKE2b-256 |
172d72f861c5013756a78ff6695eff0090c5a02477072cfc3a5e90a5bc43a6a3
|
File details
Details for the file Topsis_Rohit_101903706-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: Topsis_Rohit_101903706-1.0.1-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
8cda8ca35710ca28849895efd38db2bc4b8e58e51602b279f2f559a53f29a397
|
|
MD5 |
556cd98750e1b38c9a235156d62677f5
|
|
BLAKE2b-256 |
7ecaa3ff8bda408c7e926860067984a82138591ca01e14e212a8c294a3b43b64
|