Interactive visualizations to assess fairness, explain models, generate counterfactual examples, analyze causal effects and analyze errors in Machine Learning models.
Project description
AffectLog Widgets
This repository contains the affectlog-widgets
library, which is used for creating interactive, visual Responsible AI tools. This project provides a set of widgets for model assessment, fairness analysis, error detection, and more, built on top of machine learning frameworks.
Requirements for Development
To contribute to affectlog-widgets
, make sure to install the following dependencies.
Testing Dependencies
For running tests with code coverage and mocking, use the following:
pytest==7.0.1
pytest-cov
pytest-mock==3.6.1
Parser Dependencies
For parsing requirements, use:
requirements-parser==0.2.0
Package Building
Ensure you have the necessary tools for building the package:
wheel
Machine Learning & Fairness Libraries
Install the following libraries to enable machine learning and fairness evaluation tools:
fairlearn==0.7.0
ml-wrappers>=0.4.0
sktime
pmdarima
Note: For Windows users running Python 3.7, add the following fix for joblib
compatibility:
joblib<1.3.0; python_version <= '3.7' and sys_platform == 'win32'
Notebook Testing
To test notebooks and perform notebook validation, install:
nbformat
papermill
scrapbook
jupyter
nbval
Documentation Dependencies
For generating documentation, install the following:
docutils<=0.19
sphinx==5.0.2
sphinx-gallery==0.10.0
pydata-sphinx-theme==0.7.2
Setting up the Development Environment
Follow these steps to set up your local development environment:
-
Clone the repository:
git clone <repository_url> cd affectlog-widgets
-
Install Dependencies: You can install all dependencies via pip:
pip install -r requirements.txt
-
Run Tests: To ensure everything is working, run the tests:
pytest
Local Installation
For local development, ensure that trustworthyai
is available in your project. You can use the relative path for local development:
../trustworthyai/.
Add this path when running your local environment so the necessary modules can be accessed.
Contributing
If you're interested in contributing, please create a feature branch from main
, make your changes, and open a pull request. Ensure that all tests pass and documentation is updated where necessary.
License
This project is licensed under the MIT License. See the LICENSE file 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
Built Distribution
File details
Details for the file affectlog_widgets-0.0.2.tar.gz
.
File metadata
- Download URL: affectlog_widgets-0.0.2.tar.gz
- Upload date:
- Size: 30.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15d4374628fb19930d6dda8ec33cc5d7a3e8f34c86d4501e402382252d6f0ceb |
|
MD5 | e2dc9009001d870653ab7df3c74aae7f |
|
BLAKE2b-256 | c5b59eae3b1f438f14ca3b076b3857a15fe4c132d4b52bd69d314a96acee0d18 |
File details
Details for the file affectlog_widgets-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: affectlog_widgets-0.0.2-py3-none-any.whl
- Upload date:
- Size: 35.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 219bfbad807bb25ef64b3dd25ea455bfaab98211288e024bc747799fcf7c59d5 |
|
MD5 | 56c0bbaa5acd7e0f9d0ad4598795d340 |
|
BLAKE2b-256 | 8eb658cf9dd1b1056fed2737ea4da48c502ab1889d135459e3a9af11ffd421eb |