Deep learning audits for image classification, medical imaging, and scientific AI
Project description
rai-audit-dl
Deep learning audits for image classification, medical imaging, and scientific AI.
Features
- Image classification accuracy and per-class recall checks
- Robustness checks for recorded or callback-generated transformation predictions
- Built-in brightness, contrast, horizontal-flip, and Gaussian-noise transformations
- Grad-CAM heatmaps with PyTorch hooks or TensorFlow
GradientTape - Medical imaging checks for patient leakage across splits and site-level accuracy bias
- Segmentation Dice, IoU, mask-quality, and subgroup checks
- Object-detection mAP, IoU-threshold, class-coverage, and subgroup checks
- DICOM metadata, scanner/protocol bias, near-duplicate leakage, calibration, and patient aggregation
- Grad-CAM transformation stability and optional localization-overlap checks
Python API
from rai_audit.dl import ImageClassificationAudit
report = ImageClassificationAudit(
y_true=y_true,
y_pred=y_pred,
transformed_predictions={"sensor_noise": noisy_predictions},
persist=False,
).run()
To evaluate transformations directly, pass images and a predictor callback.
CLI
Audit recorded predictions from CSV:
rai-audit dl run --data predictions.csv --task image --format html
Medical imaging CSV audits can add --patient-id, --split, and --site.
Examples
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
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 rai_audit_dl-0.1.9.tar.gz.
File metadata
- Download URL: rai_audit_dl-0.1.9.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a273299f09462c9784b60a9150a78cf94134038d3af788c4f779e601ea0a64df
|
|
| MD5 |
2c25547d3360e17d3ba81d830d37bd46
|
|
| BLAKE2b-256 |
a877d436ab59b087acf0125d5f0d6738fab221f34da780f8ea3c97b2b9c8f207
|
Provenance
The following attestation bundles were made for rai_audit_dl-0.1.9.tar.gz:
Publisher:
publish.yml on SaiTeja-Erukude/rai-audit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rai_audit_dl-0.1.9.tar.gz -
Subject digest:
a273299f09462c9784b60a9150a78cf94134038d3af788c4f779e601ea0a64df - Sigstore transparency entry: 1686248187
- Sigstore integration time:
-
Permalink:
SaiTeja-Erukude/rai-audit@765d806641dfb84532bfe7781e171f85ba80c1c5 -
Branch / Tag:
refs/tags/rai-audit-dl-v0.1.9 - Owner: https://github.com/SaiTeja-Erukude
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@765d806641dfb84532bfe7781e171f85ba80c1c5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file rai_audit_dl-0.1.9-py3-none-any.whl.
File metadata
- Download URL: rai_audit_dl-0.1.9-py3-none-any.whl
- Upload date:
- Size: 22.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd43c7f9540db7a92522dded42c191c52bf80b23660b1efd0aae730dfaae1cea
|
|
| MD5 |
9404af5af68d9a7dbb0fa6e1f10779de
|
|
| BLAKE2b-256 |
5446a7ae163cd7ededd95d01fcd1eb29342449e4d5ac80ac56b3dbd163e34ea8
|
Provenance
The following attestation bundles were made for rai_audit_dl-0.1.9-py3-none-any.whl:
Publisher:
publish.yml on SaiTeja-Erukude/rai-audit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rai_audit_dl-0.1.9-py3-none-any.whl -
Subject digest:
fd43c7f9540db7a92522dded42c191c52bf80b23660b1efd0aae730dfaae1cea - Sigstore transparency entry: 1686248342
- Sigstore integration time:
-
Permalink:
SaiTeja-Erukude/rai-audit@765d806641dfb84532bfe7781e171f85ba80c1c5 -
Branch / Tag:
refs/tags/rai-audit-dl-v0.1.9 - Owner: https://github.com/SaiTeja-Erukude
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@765d806641dfb84532bfe7781e171f85ba80c1c5 -
Trigger Event:
push
-
Statement type: