Skip to main content

Trustworthy AI Model Analysis SDK for Python

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

The 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

trustworthyai supports computation of Trustworthy AI insights for scikit-learn models that are ttained on pandas.DataFrame. The 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 trustworthyai.

Currently, we support datasets having numerical and categorical features. The following table provides the scenarios supported for each of the four trustworthy 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/affectlog/trustworthy-ai-toolbox/tree/main/trustworthyai

Metadata

Release files for trustworthyai 0.35.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trustworthyai 0.35.0
File Size Uploaded
trustworthyai-0.35.0.tar.gz 112.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for trustworthyai 0.35.0
File Interpreter ABI Platform
trustworthyai-0.35.0-py3-none-any.whl Python 3 none any Details

Total release size: 266.4 kB

Release files / trustworthyai-0.35.0.tar.gz

Download URL trustworthyai-0.35.0.tar.gz
Size 112.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b3679b7f9d352f064bf2dd9d4b5bb6d01b605baf51d1abd0b097142c30d921ea
BLAKE2b-256 checksum
How to use checksums
2f26ec15edf5e08d2a469d9ee296e5cef5cff71c2d71236bb8013ab1ae42f595
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.10

Release files / trustworthyai-0.35.0-py3-none-any.whl

Download URL trustworthyai-0.35.0-py3-none-any.whl
Size 153.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
add9278cb590e064520b52f706627c4953f588c33de48fecd7a07fb1a3785524
BLAKE2b-256 checksum
How to use checksums
c03b91a7dc938b89b3f9c097b1f0ddcf07840ad91a7b7fbd7712b2bde2f1e5e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.10

Release history Release notifications | RSS feed

This release

0.35.0 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page