smac.facade.func_facade module

smac.facade.func_facade.fmin_smac(func: Callable, x0: List[float], bounds: List[Iterable[float]], maxfun: int = - 1, rng: Union[numpy.random.mtrand.RandomState, int] = None, scenario_args: Mapping[str, Any] = None, tae_runner_kwargs: Optional[Dict[str, Any]] = None, **kwargs: Any) → Tuple[ConfigSpace.configuration_space.Configuration, float, smac.facade.smac_hpo_facade.SMAC4HPO][source]

Minimize a function func using the SMAC4HPO facade (i.e., a modified version of SMAC). This function is a convenience wrapper for the SMAC4HPO class.

Parameters
  • func (typing.Callable) – Function to minimize.

  • x0 (typing.List[float]) – Initial guess/default configuration.

  • bounds (typing.List[typing.List[float]]) – (min, max) pairs for each element in x, defining the bound on that parameters.

  • maxfun (int, optional) – Maximum number of function evaluations.

  • rng (np.random.RandomState, optional) – Random number generator used by SMAC.

  • scenario_args (typing.Mapping[str,typing.Any]) – Arguments passed to the scenario See smac.scenario.scenario.Scenario

  • **kwargs – Arguments passed to the optimizer class See ~smac.facade.smac_facade.SMAC

Returns

  • x (list) – Estimated position of the minimum.

  • f (float) – Value of func at the minimum.

  • s (smac.facade.smac_hpo_facade.SMAC4HPO) – SMAC objects which enables the user to get e.g., the trajectory and runhistory.