Skip to main content

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

rai_audit_dl-0.1.9.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rai_audit_dl-0.1.9-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

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

Hashes for rai_audit_dl-0.1.9.tar.gz
Algorithm Hash digest
SHA256 a273299f09462c9784b60a9150a78cf94134038d3af788c4f779e601ea0a64df
MD5 2c25547d3360e17d3ba81d830d37bd46
BLAKE2b-256 a877d436ab59b087acf0125d5f0d6738fab221f34da780f8ea3c97b2b9c8f207

See more details on using hashes here.

Provenance

The following attestation bundles were made for rai_audit_dl-0.1.9.tar.gz:

Publisher: publish.yml on SaiTeja-Erukude/rai-audit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for rai_audit_dl-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 fd43c7f9540db7a92522dded42c191c52bf80b23660b1efd0aae730dfaae1cea
MD5 9404af5af68d9a7dbb0fa6e1f10779de
BLAKE2b-256 5446a7ae163cd7ededd95d01fcd1eb29342449e4d5ac80ac56b3dbd163e34ea8

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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