Skip to content

Add caller-prescribed MADCAP groupings (#227). - #233

Merged
zmek merged 1 commit into
mainfrom
caller-specified-madcap
Aug 11, 2026
Merged

Add caller-prescribed MADCAP groupings (#227).#233
zmek merged 1 commit into
mainfrom
caller-specified-madcap

Conversation

@zmek

@zmek zmek commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Let evaluate callers request stratified MADCAP on named visits_df columns via MadcapGrouping on add_classifier. Default remains age-only; missing columns are skipped.
  • Add notebook 4g (public data, artificial ethnicity) showing how admission predictions can differ across groups, plus sample-size guidance for reading those panels.
  • Small plotting fixes so 4g can run in a notebook after run_evaluation (sharey/show on plot_data_distribution; do not force Agg over an interactive backend).

Closes #227.

Test plan

  • Existing callers that omit madcap_groupings still write madcap_by_age.png
  • Explicit groupings write one chart set per present column; missing columns do not fail the run
  • uv run pytest tests/test_evaluate.py (new grouping tests)
  • Notebook 4g runs; MADCAP panels and docs mirror images are present

- Accept MadcapGrouping specs on add_classifier (age default; skip missing columns)
- Add 4g notebook: subgroup checks on public data with artificial ethnicity
- Small viz/runner fixes for notebook plotting (sharey/show; preserve interactive backend)
@zmek
zmek merged commit e3a0665 into main Aug 11, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Caller-prescribed MADCAP-by-group + bias-analysis notebook

1 participant