phenotypic.tune.strategy.GridStrategy#

class phenotypic.tune.strategy.GridStrategy(space: SearchSpace)[source]#

Bases: object

Walks the full conditional Cartesian product of the SearchSpace.

The degenerate “strategy” that reproduces exhaustive grid search. Raises on a continuous FloatRange knob (not enumerable).

Parameters:

space (SearchSpace) – The search space to enumerate; every knob must have an enumerable domain (Categorical / IntRange / Fixed).

Methods

suggest() tuple[Mapping[str, Any], PruningChannel][source]#
Return type:

tuple[Mapping[str, Any], PruningChannel]

register_result(params: Mapping[str, Any], result: Any, *, pruned: bool = False) None[source]#
Parameters:
Return type:

None

is_exhausted() bool[source]#
Return type:

bool