Socket
Socket
Sign inDemoInstall

102183051-topsis

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    102183051-topsis

A Topsis Package


Maintainers
1

Readme

TOPSIS

Submitted By: Sarthak Tiwari | 102183051


What is TOPSIS?

Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) originated in the 1980s as a multi-criteria decision making method.

How to install this package:

>> pip install -e .[dev]

After installation, in Command Prompt/Terminal in pwd/current dir:

>> topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>

Weights (weights) may not be normalised but will be normalised in the code. Note: To avoid errors - Input file must contain three or more columns. 2nd to last columns must contain numeric values only. Number of weights, number of impacts and number of columns (from 2 nd to last columns) must be same. Impacts must be either +ve or -ve. Impacts and weights must be separated by ‘,’ (comma).

InputDataFile (data.csv) - an example

The decision matrix should be constructed with each row representing a Model alternative and each column representing a criterion like Correlation, R2, Root Mean Squared Error, Accuracy, etc.

ModelCorrRseqRMSEAccuracy
M10.790.621.2560.89
M20.660.442.8963.07
M30.560.311.5762.87
M40.820.672.6870.19
M50.750.561.380.39

Output file (result.csv) -

Based on the above input file and setting weights as "1,2,1,1" and impacts as "+,-,-,+".

ModelCorrRseqRMSEAccuracyTopsis ScoreRank
M10.790.621.2560.890.4237443913596114
M20.660.442.8963.070.0.4674263682982973
M30.560.311.5762.870.7602309570349031
M40.820.672.6870.190.2077725338815665
M50.750.561.380.390.5048644578037182

The output file contains columns of input file along with two additional columns having Topsis Score and Rank.

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc