Skip to main content

SDK API to explain models, generate counterfactual examples, analyze causal effects and analyze errors in Machine Learning models.

Project description

AL360° Trustworthy AI Model Analysis SDK for Python

This package has been tested with Python 3.7, 3.8, 3.9 and 3.10

The AL360° Trustworthy AI Model Analysis SDK enables users to analyze their machine learning models in one API. Users will be able to analyze errors, explain the most important features, compute counterfactuals and run causal analysis using a single API.

Highlights of the package include:

  • explainer.add() explains the model
  • counterfactuals.add() computes counterfactuals
  • error_analysis.add() runs error analysis
  • causal.add() runs causal analysis

Supported scenarios, models and datasets

al360_trustworthyai supports computation of AL360° Trustworthy AI insights for scikit-learn models that are trained on pandas.DataFrame. The al360_trustworthyai accept both models and pipelines as input as long as the model or pipeline implements a predict or predict_proba function that conforms to the scikit-learn convention. If not compatible, you can wrap your model's prediction function into a wrapper class that transforms the output into the format that is supported (predict or predict_proba of scikit-learn), and pass that wrapper class to modules in al360_trustworthyai.

Currently, we support datasets having numerical and categorical features. The following table provides the scenarios supported for each of the four responsible AI insights:-

RAI insight Binary classification Multi-class classification Multilabel classification Regression Timeseries forecasting Categorical features Text features Image Features Recommender Systems Reinforcement Learning
Explainability Yes Yes No Yes No Yes No No No No
Error Analysis Yes Yes No Yes No Yes No No No No
Causal Analysis Yes No No Yes No Yes (max 5 features due to expensiveness) No No No No
Counterfactual Yes Yes No Yes No Yes No No No No

The source code can be found here: https://github.com/affectlog360/affectlog360/tree/main/al360_trustworthyai

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

al360_trustworthyai-0.0.1.tar.gz (113.6 kB view details)

Uploaded Source

Built Distribution

al360_trustworthyai-0.0.1-py3-none-any.whl (155.4 kB view details)

Uploaded Python 3

File details

Details for the file al360_trustworthyai-0.0.1.tar.gz.

File metadata

  • Download URL: al360_trustworthyai-0.0.1.tar.gz
  • Upload date:
  • Size: 113.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for al360_trustworthyai-0.0.1.tar.gz
Algorithm Hash digest
SHA256 96f75cd8702a89ab5980d548b926cd33cc9992705621be39324029c41559aaa2
MD5 f2101ce73329f84b495672b5c838010b
BLAKE2b-256 cebcc3470c7cd70e0b2e9ff17037140ea21c71e12b22d4a92d4bffcf0758b428

See more details on using hashes here.

File details

Details for the file al360_trustworthyai-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for al360_trustworthyai-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7edc793c83e7c8fc370be460143f06a223c730b6d73df934b7b1f675b76477f6
MD5 613bd1d08eee9e3a0829ad1269bb51ff
BLAKE2b-256 cb19c6c14491b3cacfc0a4076e2499815d8ddb76317e9840db075f2b3ec04ab5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page