Socket
Socket
Sign inDemoInstall

102053005-Aditya-Topsis

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

102053005-Aditya-Topsis

This is a package for implementing Topsis


Maintainers
1

Topsis Package by Aditya Kalhan

Roll Number : 102053005 Subgroup : 3COE18 It takes a csv file, weights (seperated by comma) , impacts (+ or -) and outputs a result file.

What is Topsis

TOPSIS is based on the fundamental premise that the best solution has the shortest distance from the positive-ideal solution, and the longest distance from the negative-ideal one.
Selecting an appropriate Multiple Attribute Decision Making (MADM) method for a given MADM problem is always a challenging task.
Within the MADM domain, the Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) is highly regarded, applied and adopted MADM method due to its simplicity and underlying concept that the best solution is the one closest to the positive ideal solution and furthest from the negative ideal solution.

Installation

Use pip installer
pip install 102053005-Aditya-Topsis

How to use it

Open terminal and type
102053005 sample.csv "1,1,1,1" "+,+,-,+" result.csv

Example

ModelStorage SpaceCameraPriceLooks
M116122505
M21682003
M332163004
M43282754
M516162252

weights = [1,1,1,1]
impact = ["+","+","-","+"]

Output

ModelStorage SpaceCameraPriceLooksTopsis ScoreRank
M1161225050.5342693
M216820030.3083145
M3321630040.6916861
M432827540.5348072
M5161622520.4012224

Output will be saved in a CSV file whose name will be provided in the command line. It will have all the columns along with the Topsis Score and Ranks.

FAQs


Did you know?

Socket

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
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc