Skip to content

Auto Reports

Workbench automatically generates and links a tailored PDF report whenever a DataSource, FeatureSet, or Model is onboarded, keeping every artifact accompanied by an up-to-date diagnostic summary in ReportStore and the Dashboard.

What Gets Generated

Artifact Auto Report ReportStore Path Backing Analysis
DataSource Auto Data Quality /data_sources/<name>/auto/data_quality data_quality() + sections.data_quality() on pull_dataframe() (up to 100,000 rows)
FeatureSet Auto Data Quality /feature_sets/<name>/auto/data_quality data_quality() + sections.data_quality() on pull_dataframe() (up to 100,000 rows, AWS internal columns stripped)
Model Auto Model Performance /models/<name>/auto/model_performance sections.performance() for regressors; metrics & confusion matrix for classifiers
Endpoint (none for now) — Endpoints still support attaching custom reports via endpoint.add_report(...)

Target Resolution for Auto Data Quality

Auto Data Quality produces the exact same full report as data_quality_report() — including Target Health, Noise Floor, and Model Readiness (OOF probes, chemical semivariogram, learning curve, compound triage) — whenever a regression target is available. It resolves the target in priority order:

  1. Explicit target= passed to generate_auto_report(target="solubility") or build_auto_report(artifact, target="solubility")
  2. workbench_target stored in the artifact's own workbench_meta()
  3. Downstream regression Model lineage via CachedMeta (direct child models of a FeatureSet, or models trained on child FeatureSets of a DataSource)

If no target exists yet (for example, a brand-new DataSource before any model is trained), Auto Data Quality still runs all table-level data quality checks cleanly. Re-running generate_auto_report() after a model is trained automatically picks up the target and adds Model Readiness.

Prediction Resolution for Auto Model Performance

For regression models (REGRESSOR, UQ_REGRESSOR, ENSEMBLE_REGRESSOR), Auto Model Performance pulls captured predictions in priority order:

  1. model.default_inference_run() (e.g., full_cross_fold, test_inference)
  2. "validation" (held-out validation split)
  3. "training" (out-of-fold training predictions)

For classifiers (CLASSIFIER), it renders stored classification metrics and the confusion matrix. Unsupervised/transformer models or models without captured predictions return None cleanly without writing an empty PDF.

Running & Refreshing Manually

You can generate or refresh an artifact's auto report at any time (for example, to backfill existing artifacts or after retraining):

from workbench.api import DataSource, FeatureSet, Model

# Regenerate with automatic target / prediction resolution
DataSource("aqsol_data").generate_auto_report()
FeatureSet("aqsol_features").generate_auto_report()
Model("aqsol-regression").generate_auto_report()

# Or specify a target explicitly for Data Quality + Model Readiness
DataSource("my_new_data").generate_auto_report(target="log_cmax", key="compound_id")

generate_auto_report() is best-effort during onboard(): failures log a warning rather than blocking artifact creation, and read-only roles are skipped safely.

Lifecycle & Cleanup

  • Onboard: DataSource.onboard(), FeatureSet.onboard(), and Model.onboard_with_args() generate the auto report, publish its PDF to ReportStore and backing frames to DFStore (/reports/auto_<type>_<name>/...), link it in workbench_reports, and notify CachedMeta so the Dashboard picks it up immediately.
  • Model Copy: workbench_reports is excluded from Model.copy() so copied models do not inherit the source model's auto report.
  • Delete: managed_delete() cleans up the artifact's owned /<type>/<name>/auto/<report> PDF and its /reports/auto_<type>_<name> DFStore frames, while leaving /<type>/<name>/custom/* and /shared/* reports untouched.

Dashboard Display

The Workbench Dashboard registers GET /report/<path:location> on its Flask server (streaming PDFs inline with Content-Type: application/pdf, or as a download with ?download=1). All four artifact detail panels (DataDetails, ModelSummary, EndpointDetails) automatically render linked reports as clickable PDF links that open in a new tab:

  • /<type>/<name>/auto/data_quality displays as Auto Data Quality
  • /<type>/<name>/auto/model_performance displays as Auto Model Performance
  • Custom & shared reports display by their basename (disambiguated with <scope> / <name> if two linked reports share a basename)

Page 1 Input Provenance & Linked Upstream Reports

Every auto report includes a compact Input callout on Page 1 showing where the artifact came from and linking directly up the lineage chain:

  • Models: when get_input() names a FeatureSet, Page 1 shows its metadata and a clickable Open Auto Data Quality button linking straight to that FeatureSet's Auto Report (/report/feature_sets/<name>/auto/data_quality). If trained directly from a DataFrame, it shows compact DataFrame metadata instead.
  • FeatureSets: when get_input() names a DataSource, Page 1 shows its metadata and a clickable Open Auto Data Quality button linking to that DataSource's Auto Report (/report/data_sources/<name>/auto/data_quality). If built from a DataFrame, it shows compact DataFrame metadata.
  • DataSources: shows compact provenance metadata for the backing S3 file URI or Pandas DataFrame.

Links are stamped with your configured DASHBOARD_URL so downloaded/shared PDFs work anywhere, and the Dashboard's /report/... route automatically rewrites them to the active host during local development (e.g., http://localhost:8000).