Skip to main content

Fairness, robustness, and data quality audits for traditional ML models

Project description

rai-audit-ml

Fairness, robustness, data quality, and production drift audits for tabular ML models.

from rai_audit.ml import ClassificationAudit, DriftAudit, RegressionAudit

DriftAudit compares a reference window with a current batch. It checks numeric feature distributions, prediction distributions, sensitive-feature subgroup composition, and classification error-rate changes per sensitive group. Numeric drift evidence includes corrected KS p-values, population stability index, and Jensen-Shannon divergence.

Classification fairness checks include equalized odds, calibration by group when probabilities are available, Wilson confidence intervals, and explicit warnings for undersized groups. Data-quality checks include common PII patterns, numeric outliers, and target-deterministic features.

Use split_data_quality_findings to catch entity overlap and exact duplicate rows across train and test datasets:

from rai_audit.ml import split_data_quality_findings

findings = split_data_quality_findings(train, test, id_columns=["patient_id"])

See examples/ml_drift_monitoring/batch_monitor.py and examples/mlops_integrations/ for monitoring 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_ml-0.1.10.tar.gz (26.8 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_ml-0.1.10-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

Details for the file rai_audit_ml-0.1.10.tar.gz.

File metadata

  • Download URL: rai_audit_ml-0.1.10.tar.gz
  • Upload date:
  • Size: 26.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rai_audit_ml-0.1.10.tar.gz
Algorithm Hash digest
SHA256 873a6284ae79ca3c2db7dc9dd89acd009e2162c9e478e80803e92af6e4cbf370
MD5 d7142ed71e35a0a2aac5be855f26e8e4
BLAKE2b-256 2a8409bd7cbc2409aff89131bbb32e897ce467c1b553a8dea730a7cf774c6972

See more details on using hashes here.

Provenance

The following attestation bundles were made for rai_audit_ml-0.1.10.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_ml-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: rai_audit_ml-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 27.6 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_ml-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 142633c2471022104b6867825ca7229808d190f30e5b09566cd4e8f0d1323e77
MD5 e6704d0b9a4cd6abcd56a7fd7bf7738d
BLAKE2b-256 4e2fc60edeabdcaf5f3e8c4dc70190eff714accb7d0632ef37ddfe011665e630

See more details on using hashes here.

Provenance

The following attestation bundles were made for rai_audit_ml-0.1.10-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