Skip to main content

Comparison of models using Topsis

Project description

Introduction

TOPSIS (technique for order performance by similarity to ideal solution) is a useful technique in dealing with multi-attribute or multi-criteria decision making (MADM/MCDM) problems in the real world.

Installation

Use the package manager pip to install.

pip install topsis-102103357

Usage

Enter csv filename followed by .csv extentsion, then enter the weights vector with vector values separated by commas, followed by the impacts vector with comma separated signs (+,-) and enter the output file name followed by .csv extension.

topsis-102103357 [InputDataFile as .csv] [Weights as a string] [Impacts as a string] [ResultFileName as .csv]

Sample Input

Fund Name P1 P2 P3 P4 P5
M1 0.84 0.71 6.7 42.1 12.59
M2 0.91 0.83 7 31.7 10.11
M3 0.79 0.62 4.8 46.7 13.23
M4 0.78 0.61 6.4 42.4 12.55
M5 0.94 0.88 3.6 62.2 16.91
M6 0.88 0.77 6.5 51.5 14.91
M7 0.66 0.44 5.3 48.9 13.83
M8 0.93 0.86 3.4 37 10.55

topsis-102103357 data.csv "1,1,1,1,1" "+,-,+,-,+" output.csv

Sample Output

Results saved to output.csv

Fund Name P1 P2 P3 P4 P5 Performance Rank
M1 0.84 0.71 6.7 42.1 12.59 0.404268469809145 5.0
M2 0.91 0.83 7 31.7 10.11 0.699297825503612 1.0
M3 0.79 0.62 4.8 46.7 13.23 0.333581741928051 8.0
M4 0.78 0.61 6.4 42.4 12.55 0.364968017290041 6.0
M5 0.94 0.88 3.6 62.2 16.91 0.534831688649816 2.0
M6 0.88 0.77 6.5 51.5 14.91 0.439693012540145 4.0
M7 0.66 0.44 5.3 48.9 13.83 0.526356720373482 3.0
M8 0.93 0.86 3.4 37 10.55 0.341972356097968 7.0

The best model is M2

License

This repository is licensed under the MIT license. See LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

topsis-102103357-0.0.4.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

topsis_102103357-0.0.4-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file topsis-102103357-0.0.4.tar.gz.

File metadata

  • Download URL: topsis-102103357-0.0.4.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for topsis-102103357-0.0.4.tar.gz
Algorithm Hash digest
SHA256 95722f49aafbd285d31387556abc67a7a5abc7f242b46b07b355fda54ee8f0c3
MD5 95ba41b2e205771b9738d393bfa5b9bd
BLAKE2b-256 21069d8c3db12b45fa556377539ad2ac144e471f06e817be7a86d2e5b8847223

See more details on using hashes here.

File details

Details for the file topsis_102103357-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_102103357-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 006dc66e0817c4adb5e218495dd9a6c3ba3f2ffd7b473f6090229f568f67e0f6
MD5 30f65771551214035474aef86ad9891f
BLAKE2b-256 c11ae85a91c3b5c19a174cc45cc2ed428aee483ac1923538ce74973cc47c980e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page