phenotypic.tune.infer_search_space#
- phenotypic.tune.infer_search_space(pipeline: Any, *, unbounded_factor: float = 4.0, recurse_nested: bool = True) InferredSearchSpace[source]#
Mine a pipeline into a generous, reviewable
InferredSearchSpace.Walks the pipeline’s ops in position order and infers each scalar field via the Tier-2 type heuristics (Tier-1
TuneSpecoverride added in P3-4). Knob keys are flat"<position>.<field>"paths.- Parameters:
pipeline (Any) – A live
ImagePipelinewhoseget_ops()yields the ops in insertion order.unbounded_factor (float) – Multiplicative half-window
[d/f, d·f]for the unbounded numeric heuristic (default4.0→ 16× span).recurse_nested (bool) – Recurse exactly one level into operation-valued (
OperationField) fields — a single nested op or a list of them. On by default;Falseyields the flat-only proposal (no nested knobs), byte-identical to the pre-recursion space. The recursion is strictly additive: a pipeline with no nested ops is unchanged.
- Returns:
The
InferredSearchSpaceproposal.- Return type: