Skip to content

feat: omega layered-prior builder in qsp_inference.targets - #83

Merged
jeliason merged 2 commits into
mainfrom
feature/targets-omega
Jul 24, 2026
Merged

feat: omega layered-prior builder in qsp_inference.targets#83
jeliason merged 2 commits into
mainfrom
feature/targets-omega

Conversation

@jeliason

Copy link
Copy Markdown
Member

The prior half of the maple target-data contract, migrated out of pdac workflows/omega_prior.py (sibling of the observed-data anchor half).

build_omega_center walks the four population-spread layers — global default → role → explicit → data-shrunk-by-n (MBMA shrinkage: a sample SD from n donors pulls omega with precision 2(n-1) against the class prior) — generic over the role map / global default / class-prior tau a project injects.

Ships OmegaEntry, shrink_toward_prior, load_omega_overrides (role-validated), load_population_n (biological n per parameter from submodel targets, moved verbatim to preserve behavior), write_provenance. 9 tests.

pdac keeps its role values / CSV path / target dirs and wraps these (next PR reduces omega_prior.py to that thin wrapper).

jeliason added 2 commits July 24, 2026 10:36
The prior half of the maple target-data contract, migrated out of pdac
workflows/omega_prior.py. build_omega_center walks the four population-spread
layers (global default -> role -> explicit -> data-shrunk-by-n, MBMA), generic
over the role map / global default / class-prior tau injected by a project.
Ships OmegaEntry, shrink_toward_prior, load_omega_overrides (role-validated),
load_population_n (biological n per parameter from submodel targets), and
write_provenance. Sibling of the observed-data half (anchors); both now live in
targets/. pdac keeps its role values / CSV / dirs and wraps these. 9 tests.
@jeliason
jeliason merged commit 09283be into main Jul 24, 2026
1 check passed
@jeliason
jeliason deleted the feature/targets-omega branch July 24, 2026 16:42
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.

1 participant