Skip to content

latent.flows

Pre-built statistical evaluation and simulation flows.

Flows are lazy-loaded: from latent.flows import judge_flow only imports latent.flows.judge_flow, not all 20+ sibling flows. Keeps cold-start fast and lets vendor consumers ship just the flows they actually call. See latent._lazy for the mechanism.

The prefect extras check below runs at package-load time, so a missing extra fails there (the test_flows_guard_missing_prefect contract) rather than on first lazy attribute access. It looks prefect up without importing it: the run_* library cores never touch Prefect, and importing it here would put it in every consumer's process anyway.