dr-sandbox/flows
Michael Pilosov c12d2cda6c flow: hash user-supplied generator_kwargs, not the merged dict
The flow previously merged _DEFAULT_GENERATOR_KWARGS={random_state:0} and
n_samples=num_points into generator_kwargs BEFORE hashing. Prefect only
records the user-supplied form, so the web app's synth_output_paths
disagreed with the flow's output name — a plain swiss_roll run showed
'embedding: n/a' in the runs list despite completing, because the web
looked for the hash that excluded those defaults.

Now we keep the user-supplied generator_kwargs around for hashing +
metadata, and use the merged dict only for the actual generator call.
n_samples is already captured in the stem as 'N<n>', and random_state=0
is a flow constant — neither belongs in the semantic identity.
2026-04-22 17:04:50 -06:00
..
embedding_flow.py flow: hash user-supplied generator_kwargs, not the merged dict 2026-04-22 17:04:50 -06:00
embedding_utils.py metrics stored (2x) 2026-04-21 20:41:17 -06:00