Explainable imbalanceD learninG compARatOr
Project description
Explainable imbalanceD learninG compARatOr
Overview
The usage of many balancing methods like Random Undersampling, Random Oversampling, SMOTE, NearMiss is a very popular solution when dealing with imbalanced data. However, a question can be posed of whether these techniques can change the model behaviour or the relationships present in data.
As there are many kinds of Machine Learning models, this package provides model-agnostic tools to investigate the model behaviour and its changes. These tools are also known as Explainable Artificial Intelligence (XAI) tools and include techniques such as Partial Dependence Profile (PDP), Accumulated Local Effects (ALE) and Variable Importance (VI).
Apart from that, the package implements novel methods to compare the explanations, which are Standard Deviation of Distances (for PDP and ALE) and the Wilcoxon statistical test (for VI).
Generally speaking, this package aims to giving a user-friendly interface to investigate whether the described phenomena take place.
The package was written in Python and consists of four modules: dataset, balancing, model and explain. It provides a simple and user-friendly interface which aims to automate the process of data balancing with different methods, training Machine Learning models and calculating PDP/ALE/VI explanations. The package can be used for one input dataset or for a number of datasets arranged in arrays or nested arrays.
Technologies
The package was written in Python and was checked to be compatible with Python 3.8, Python 3.9 and Python 3.10.
It uses most popular libraries for Machine Learning in Python:
- pandas, NumPy
- scikit-learn, xgboost
- imbalanced-learn
- dalex
- scipy, statsmodels
- matplotlib
- openml
User Manual
User Manual is available as a part of the documentation, here
Installation
The edgaro
package is available on PyPI and can be installed by:
pip install edgaro
Documentation
The documentation is available at adrianstando.github.io/edgaro
Project purpose
This package was created for the purpose of my Engineering Thesis "The impact of data balancing on model behaviour with Explainable Artificial Intelligence tools in imbalanced classification problems".
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
Built Distribution
File details
Details for the file edgaro-1.0.0.tar.gz
.
File metadata
- Download URL: edgaro-1.0.0.tar.gz
- Upload date:
- Size: 60.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 204c1a328b1e8ba547894ebb1161ea6b98d22fc39eff4545188256a018ae48de |
|
MD5 | 801e878314438a0a1001883228a597dc |
|
BLAKE2b-256 | b96725a5da7bbc4ee7b5ee4df7817bd67b93ee6ffd48198d4cbc06f7ee535a77 |
File details
Details for the file edgaro-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: edgaro-1.0.0-py3-none-any.whl
- Upload date:
- Size: 59.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b902c28f1917e44491756cfc9cbf902c2f4289d3ef57d2ec459a14895a0873d |
|
MD5 | c40d9e8c12578c1969afba724212c377 |
|
BLAKE2b-256 | f4d92ae5a03269da788c6f7ea8aa548014a26c4c5e0e260306fec3b62d037f49 |