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.2.tar.gz (4.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: TOPSIS-Sort-B-1.0.2.tar.gz
  • Upload date:
  • Size: 4.5 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.2.tar.gz
Algorithm Hash digest
SHA256 561685ed48021a405e91b6cd15d2c4e8718fedd2bbda0747fac2e3a541663e89
MD5 6bf22364a337b2e0b8f5352f8797a6d8
BLAKE2b-256 00006b7950a7e59a55525ec7660b87d29b034554d07f10574442fd904609e76d

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