Holistic AI: building trustworthy AI systems
Holistic AI is an open-source library dedicated to assessing and improving the trustworthiness of AI systems. We believe that responsible AI development requires a comprehensive evaluation across multiple dimensions, beyond just accuracy.
Current Capabilities
Holistic AI currently focuses on five verticals of AI trustworthiness:
- Bias: measure and mitigate bias in AI models.
- Explainability: measure into model behavior and decision-making.
- Robustness: measure model performance under various conditions.
- Security: measure the privacy risks associated with AI models.
- Efficacy: measure the effectiveness of AI models.
Quick Start
pip install holisticai # Basic installation
pip install holisticai[datasets] # add datasets and plot dependencies
pip install holisticai[bias] # Bias mitigation support
pip install holisticai[explainability] # For explainability metrics and plots
pip install holisticai[all] # Install all packages for bias and explainability
# imports
from holisticai.bias.metrics import classification_bias_metrics
from holisticai.datasets import load_dataset
from holisticai.bias.plots import bias_metrics_report
from sklearn.linear_model import LogisticRegression
from sklearn.preprocessing import StandardScaler
# load an example dataset and split
dataset = load_dataset('law_school', protected_attribute="race")
dataset_split = dataset.train_test_split(test_size=0.3)
# separate the data into train and test sets
train_data = dataset_split['train']
test_data = dataset_split['test']
# rescale the data
scaler = StandardScaler()
X_train_t = scaler.fit_transform(train_data['X'])
X_test_t = scaler.transform(test_data['X'])
# train a logistic regression model
model = LogisticRegression(random_state=42, max_iter=500)
model.fit(X_train_t, train_data['y'])
# make predictions
y_pred = model.predict(X_test_t)
# compute bias metrics
metrics = classification_bias_metrics(
group_a = test_data['group_a'],
group_b = test_data['group_b'],
y_true = test_data['y'],
y_pred = y_pred
)
# create a comprehensive report
bias_metrics_report(model_type='binary_classification', table_metrics=metrics)
Key Features
- Comprehensive Metrics: Measure various aspects of AI system trustworthiness, including bias, fairness, and explainability.
- Mitigation Techniques: Implement strategies to address identified issues and improve the fairness and robustness of AI models.
- User-Friendly Interface: Intuitive API for easy integration into existing workflows.
- Visualization Tools: Generate insightful visualizations for better understanding of model behavior and bias patterns.
Documentation and Tutorials
Detailed Installation
Troubleshooting (macOS):
Before installing the library, you may need to install these packages:
brew install cbc pkg-config
python -m pip install cylp
brew install cmake
Contributing
We welcome contributions from the community To learn more about contributing to Holistic AI, please refer to our Contributing Guide.
Metadata
Release files for holisticai 1.0.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| holisticai-1.0.14.tar.gz | 10.5 MB | Without provenance | Details for holisticai-1.0.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| holisticai-1.0.14-py3-none-any.whl | Python 3 | none | any | Details for holisticai-1.0.14-py3-none-any.whl |
Total release size: 11.0 MB
Release files / holisticai-1.0.14.tar.gz
| Download URL | holisticai-1.0.14.tar.gz |
|---|---|
| Size | 10.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
443c88e6d78cdde5167660d905d50b49e9abe0eb577035ea7d18c7534f938bf3
|
|
BLAKE2b-256 checksum How to use checksums |
e0e17324e82a40ebaaac6d0775d2172690de177b43befde49862b35003499288
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.28.1
|
Release files / holisticai-1.0.14-py3-none-any.whl
| Download URL | holisticai-1.0.14-py3-none-any.whl |
|---|---|
| Size | 421.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a932574227a51b41399719da022ea9486d9a83c406615c1bc075bb5c0743fe13
|
|
BLAKE2b-256 checksum How to use checksums |
70a952071323d417a92bb7aad3df1439ac8dd62ba0c3a8b28d5881f7df606c39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.28.1
|
Security for holisticai 1.0.14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.