boxmot.engine.tuning.backends.base
Abstract base class for tune search backends.
BaseTuneBackend
BaseTuneBackend(
*,
yaml_cfg: dict,
opt_metrics: list[str],
opt_modes: list[str],
baseline_config: dict[str, Any] | None = None,
seed: int | None = None,
max_concurrent: int = 4,
)
Bases: ABC
Interface that all tune search backends must implement.
Subclasses are responsible for constructing the Ray Tune search algorithm
and the param_space dict passed to tune.Tuner.
build
abstractmethod
Return (search_alg, param_space) for Ray Tune.
Parameters
tune : module
The ray.tune module (passed to avoid import at class definition time).
Returns
search_alg : ConcurrencyLimiter | None Wrapped searcher, or None for random search. param_space : dict Flat dict of Ray Tune samplers (empty when the searcher owns the space).