Trustworthy Machine Learning Assessment
Project description
AffectLog
AffectLog: Trustworthy Machine Learning Assessment
Overview
Unverified black box models are destined for failure. Lack of transparency breeds distrust, leading to neglect and eventual rejection.
The 'affectlog' package offers a suite of tools to dissect and explain the behavior of any predictive model. The central component, the Explainer object, wraps around the model, facilitating detailed exploration and comparison through various model-level and prediction-level explanations. Additionally, 'affectlog' provides methods for assessing fairness and interactive dashboards for comprehensive analysis.
Installation
The affectlog package is available on PyPI and conda-forge.
pip install affectlog -U
conda install -c conda-forge affectlog
One can install optional dependencies for all additional features using pip install affectlog[full].
Resources: https://affectlog.com/research.html
API reference: https://affectlog.com/research/api
## Authors
The authors of the affectlog package are:
AffectLog Developer Team
We welcome contributions: start by opening an issue on GitHub.
## Citation
If you use affectlog, please cite our research:
@article{AffectLog360,
author = {AffectLog Developer Team},
title = {AffectLog: Trustworthy Machine Learning
with Interactive Explainability and Fairness in Python},
journal = {Research- AffectLog360°},
year = {n.d.},
url = {https://affectlog.com/research.html}
}
Changelog
v0.0.2 (2024-02-28)
- Dependencies:
- Increased the dependencies to
python>=3.8,pandas>=1.5.0,numpy>=1.23.3. - Added
python==3.11to CI.
- Increased the dependencies to
- TensorFlow/Keras Compatibility:
- Added
keras.src.models.sequential.Sequentialto classes with a knownpredict_function; this fixes changes inkeras==3.0.0andtensorflow==2.16.0. - Turned off
verbosein the predict method of tensorflow/keras models to address changes intensorflow>=2.9.0.
- Added
- Warnings and Errors:
- Updated the warning occurring when specifying
variable_splits. - Fixed an error occurring in
predict_profile()when a DataFrame has MultiIndex inpandas>=1.3.0. - Fixed Gaussian
norm()calculation inmodel_profile()frompi*sqrt(2)tosqrt(2*pi). - Fixed a warning (future error) between
prepare_numerical_categorical()andprepare_x()withpandas==2.1.0. - Fixed a warning (future error) concerning the default value of
numeric_onlyinpandas.DataFrame.corr()inaffectlog.aspect.calculate_assoc_matrix().
- Updated the warning occurring when specifying
- Explainer Enhancements:
- Improved
Explainerobject to better handle new dependencies and compatibility issues.
- Improved
v0.0.1 (2023-12-16)
- Precision and Recall Functions:
- Added handling for
ZeroDivisionErrorin precision and recall functions to prevent crashes.
- Added handling for
- Warnings and Alerts:
- Added a warning to
calculate_depend_matrix()when there is a variable with only one value to notify users of potential issues.
- Added a warning to
- Exploratory Data Analysis (EDA) Plots:
- Fixed missing EDA plots in the AL360 module, enhancing the visualization and analysis capabilities.
- Predict Parts Explanations:
- Fixed baseline positions in the subplots of the predict parts explanations: BreakDown, Shap, ensuring accurate visual representation.
- Model and Predict Enhancements:
- Improved model and predict functionalities to align with the latest updates and user feedback.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file affectlog-0.0.4.tar.gz.
File metadata
- Download URL: affectlog-0.0.4.tar.gz
- Upload date:
- Size: 6.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6e90abed21475a1d12de04eb89f2def1b43c738d5cf4b06dd0aabe4699d2e81
|
|
| MD5 |
07b38bfacab48a7fa40e5232287b989c
|
|
| BLAKE2b-256 |
6dec1f3edbd8f19e32d8acb580936f2f3e196cfa8959fe959d6d6185dfe149be
|
File details
Details for the file affectlog-0.0.4-py3-none-any.whl.
File metadata
- Download URL: affectlog-0.0.4-py3-none-any.whl
- Upload date:
- Size: 6.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9666897507bec45dafb268414663dbafde0df7beebde6b2b1e657ed88c35db61
|
|
| MD5 |
3960da7fedd277760f191d90e2a047cb
|
|
| BLAKE2b-256 |
b97c4956b917fd36e2670f39e2e5aeef4e3093d67f98432b7eed7fb24ef741f4
|