Skip to main content

Topsis-Sort-B package

Project description

Topsis Sort B - LIB PYPI

The TOPSIS-Sort-B is an enhanced variation of the TOPSIS-Sort method, designed to address classification and sorting problems in multiple criteria decision-making. In this method, boundary profiles are employed to determine categorization classes and to sort alternatives based on the proximity of their proximity coefficients to the established profiles.

Tecnologias usads

Tecnologias Versão Install
Python 3.12.1 pip install python==3.12.1
Numpy 1.26.4 pip install numpy==1.26.4
Pandas 2.2.1 pip install pandas==2.2.1

Installtion

  1. Install the required dependencies by running the following command: pip pip install topsisSortLib

How to Run the Application

  1. After installing the package, import the library.
  2. from topsisSortLib import topsis_b_sort_profile_classification

How to Use

  1. To utilize the topsis_b_sort_profile_classification function, follow these steps:
  2. Import pandas: Begin by importing the pandas library as pd.

How to Use

To utilize the topsis_b_sort_profile_classification function, follow these steps:

  1. Import pandas: Begin by importing the pandas library.

    import pandas as pd
    
  2. Load CSV File: Load your CSV file into a pandas DataFrame using pd.read_csv().

    df = pd.read_csv('your_file.csv')
    
  3. Clean Data: Clean the DataFrame by converting all non-numeric values to numeric using pd.to_numeric() and filling any missing values with zero.

    df = df.apply(pd.to_numeric, errors='coerce').fillna(0)
    
  4. Call Function: Pass the cleaned DataFrame along with other necessary arguments into the topsis_b_sort_profile_classification function.

    result = topsis_b_sort_profile_classification(
        decision_matrix=df,
        domain_matrix=your_domain_matrix,
        dominant_profiles=your_dominant_profiles,
        weights=your_weights
    )
    

Make sure to replace your_file.csv, your_domain_matrix, your_dominant_profiles, and your_weights with the appropriate variables or data structures.

`

References

  • Silva, D. F. L., & Filho, A. T. A. (2020). Sorting with TOPSIS through boundary and characteristic profiles. Journal Name, Volume(1), 141.
  • GeeksforGeeks.TOPSIS method for Multiple-Criteria Decision Making (MCDM). Retrieved from [URL]

Deploy

  • Aplicação
  • library [URL]

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-Sort-B-1.0.3.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file TOPSIS-Sort-B-1.0.3.tar.gz.

File metadata

  • Download URL: TOPSIS-Sort-B-1.0.3.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for TOPSIS-Sort-B-1.0.3.tar.gz
Algorithm Hash digest
SHA256 d739951304a32b5588df33d5a5f6afab0cff70eb8089df9d5768c73d852f7762
MD5 08e4099170f52fd42e1c4fb4c1f8ffa7
BLAKE2b-256 c6b07b92bfc48fe62771ff2fdc7c5eef1280db6977541c782ede8685c1cbd27c

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