phenotypic.tune.run_auto_space#

phenotypic.tune.run_auto_space(pipeline: object, output_dir: str | Path) InferredSearchSpace[source]#

Infer a search-space proposal from pipeline and persist it.

Mines pipeline with infer_search_space() (one-level nested recursion on) and writes the proposal to deliverables/tuning_spec.json under output_dir. No engine is run, so no trials.parquet / best_pipeline.json / param_importance.json is produced — this is the inspect-before-you-tune step.

Parameters:
  • pipeline (object) – A live ImagePipeline whose ops are mined for tunable fields.

  • output_dir (str | Path) – The run directory; the proposal lands at io.tuning_spec_path(output_dir).

Returns:

The InferredSearchSpace proposal (also written to disk).

Return type:

InferredSearchSpace