semvec/pypi-packages huggingface dataset:
Topsis-Deepankar-Varma-102003431 0.19
This is a topsis package of Deepankar Varma version 0.19

## Topsis_Deepankar_Varma_102003431

# TOPSIS

Submitted By: _Deepankar Varma-102003431_.

Type: _Package_.

Title: **TOPSIS method for multiple-criteria decision making (MCDM)**.

Version: _0.19_.

Date: _2022-01-29_.

Author: _Deepankar Varma_.

Maintainer: **Deepankar Varma <satwikdpshrit@gmail.com>**.

Description: **Evaluation of alternatives based on multiple criteria using TOPSIS method.**.

---

## What is TOPSIS?

*Technique for **Order **Preference by **Similarity to **Ideal \*\*S*olution
(TOPSIS) originated in the 1980s as a multi-criteria decision making method.
TOPSIS chooses the alternative of shortest Euclidean distance from the ideal solution,
and greatest distance from the negative-ideal solution.

<br>

## How to install this package:

> > pip install Topsis-Deepankar-Varma-102003431==0.19

### In Command Prompt

> > topsis 102003431-data.csv "1,1,1,1,2" "-,+,+,-,+" 102003431-result.csv

## Input file (data.csv)

The decision matrix should be constructed with each row representing a Model alternative, and each column representing a criterion like Accuracy, R<sup>2</sup>, Root Mean Squared Error, Correlation, and many more.

| Model | P1  | P2   | P3  | P4   | P5    |
| ----- | --- | ---- | --- | ---- | ----- |
| M1    | 0.7 | 0.71 | 6.7 | 42.1 | 12.59 |
| M2    | 0.8 | 0.83 | 7   | 31.7 | 10.11 |
| M3    | 0.7 | 0.62 | 4.8 | 46.7 | 13.23 |
| M4    | 0.9 | 0.61 | 6.4 | 42.4 | 12.55 |
| M5    | 0.9 | 0.88 | 3.6 | 62.2 | 16.91 |
| M6    | 0.9 | 0.77 | 6.5 | 51.5 | 14.91 |
| M7    | 0.9 | 0.44 | 5.3 | 48.9 | 13.83 |
| M8    | 0.9 | 0.86 | 3.4 | 37   | 10.55 |

Weights (`weights`) is not already normalised will be normalised later in the code.

Information of benefit positive(+) or negative(-) impact criteria should be provided in `impacts`.

<br>

## Output file (result.csv)

| Model | P1   | P2   | P3  | P4   | P5    | Topsis Score | Rank |
| ----- | ---- | ---- | --- | ---- | ----- | ------------ | ---- |
| M1    | 0.93 | 0.86 | 4.4 | 52.6 | 14.7  | 0.457283053  | 6    |
| M2    | 0.67 | 0.45 | 3.7 | 47.9 | 13.18 | 0.172274243  | 8    |
| M3    | 0.61 | 0.37 | 5.8 | 65   | 17.95 | 0.560480297  | 2    |
| M4    | 0.94 | 0.88 | 6   | 40.7 | 12.13 | 0.491036776  | 3    |
| M5    | 0.69 | 0.48 | 3.8 | 55.6 | 15.14 | 0.239375223  | 7    |
| M6    | 0.93 | 0.86 | 5.3 | 47.1 | 13.55 | 0.486632047  | 4    |
| M7    | 0.93 | 0.86 | 6.9 | 69.9 | 19.65 | 0.822186901  | 1    |
| M8    | 0.95 | 0.9  | 3.1 | 61.6 | 16.64 | 0.460139442  | 5    |

<br>
The output file contains columns of input file along with two additional columns having *Topsis_score* and *Rank*
jetdb 0.3.2
This module is designed for everyone to easily handle txt files. JSON file handling will be added soon.
Requires Python: >=3.8,<4.0

<h1>Disclaimer</h1>
This package has strict syntax. If you do not like strict syntax, do not use.
This package makes file handling simpler. <br><br>Current Version: [Version 0.3.2]
<br><br>
Most functions are still in development, so please report bugs if there are any.
Report bugs by sending an email to adityasrijeet12355@gmail.com
<br><br>
<h1>Example Code</h1>
<br>

```python
from jetdb import functions

db = functions()

db.setup()
```
<h1>Functions Supplied</h1>

• Setup - Updates, Restarts, Removes dependencies in the background
<br>
• Add - Adds a line
<br>
• Index - Finds the line number for you
<br>
• Index Replace - Indexes the line and replaces it
<br>
• New File - Creates a new file for you
<br>
• Clear - Clears a whole file for you
<h1>How to use functions</h1>
<br>
Example code:<br><br>

```python
from jetdb import functions

db = jetdb_txt()

csv_db = jetdb_csv()

db.setup()

filename = "--> INSERT FILENAME HERE <--"

db.clear(f"{filename}")

db.add(f"{filename}", "This module is cool!", msg=False)

db.add(f"{filename}", "This module is cool!", msg=True)

db.index_replace(f"{filename}", "This module is cool!", "This module is the best", msg=False)

db.index(f"{filename}", "This module is the best")

db.printRead(f"{filename}")

csv.readBase(f"{filename}")
```
  
You get it, use the variable you used to control the functions, then you add the function name after it.
<br><br>
Example code:<br>
```python
  from jetdb import functions
  
  db = functions()
  
  db.setup()
  
  db.printRead(f"{filename}")
```

<br>
That previous block of code will read a file and print it.
<h1>Changelog</h1>
<br>
<h2>Version 0.3.2</h2>
+ Added new functions - Name: JetDB-CSV
<br> + New Custom Error [JetDB-CSV]
<br> + 3 New Functions [JetDB-CSV]
<br> + New Custom Error Inspection Statistics [JetDB-CSV]
<br> -\ Original Functions renamed - Name: JetDB-TXT
<h2>Version 0.3.1</h2>
<br>
-\ Removed one dependency
<br> -\ Custom Error bug fix
<br> -\ Colorama dependency changed again
<br> -\ Colorama injection revamp
<h2>Version 0.3.0</h2>
<br>
-\ Changed the dependencies
<br> -\ Minor error bug fixes
<br> -\ Colorama dependency change
<br> -\ Colorama now gets installed in your project
<h2>Version 0.2.99</h2>
<br>
-\ Changed the dependencies
<br> -\ Minor error bug fixes
<br> + Colorama
<br> + Custom Errors
<h2>Version 0.2.4</h2>
<br>
-\ Changed the dependencies
<br> -\ Minor error bug fixes
<br> + Added description
<br> + Added Changelog
<h2>Version 0.2.0</h2>
<br>
+ Added a dependency
<br> + Added index feature
<br> - Removed search line feature
<br> -\ Remastered new file feature
<br> -\ Remastered Index Replace feature
<h2>Version 0.1.5</h2>
<br>
+ Added a dependency
<br> + Added search line feature
<br> -\ Remastered new file feature
<br> -\ Remastered Index Replace feature
<h2>Version 0.1.1</h2>
<br>
-\ Minor bug fixes
<br>
-\ Revamped speed
<br> -\ Patched up clear file function
<h2>Version 0.1.0</h2>
<br>
How everything started:
<br>
+ Wait function<br>
+ Add line function<br>
+ Replace line function beta