smac.facade.experimental.hydra_facade

Classes

Hydra(scenario, n_iterations[, val_set, ...])

Facade to use Hydra default mode

class smac.facade.experimental.hydra_facade.Hydra(scenario, n_iterations, val_set='train', incs_per_round=1, n_optimizers=1, rng=None, run_id=1, tae=<class 'smac.tae.execute_ta_run_old.ExecuteTARunOld'>, tae_kwargs=None, **kwargs)[source]

Bases: object

Facade to use Hydra default mode

Parameters
  • scenario (Scenario) – Scenario object

  • n_iterations (int,) – number of Hydra iterations

  • val_set (str) – Set to validate incumbent(s) on. [train, valX]. train => whole training set, valX => train_set * 100/X where X in (0, 100)

  • incs_per_round (int) – Number of incumbents to keep per round

  • n_optimizers (int) – Number of optimizers to run in parallel per round

  • rng (int/np.random.RandomState) – The randomState/seed to pass to each smac run

  • run_id (int) – run_id for this hydra run

  • tae (BaseRunner) – Target Algorithm Runner (supports old and aclib format as well as AbstractTAFunc)

  • tae_kwargs (Optional[dict]) – arguments passed to constructor of ‘~tae’

logger
stats

loggs information about used resources

Type

Stats

solver

handles the actual algorithm calls

Type

SMBO

rh

List with information about previous runs

Type

RunHistory

portfolio

List of all incumbents

Type

list

optimize()[source]

Optimizes the algorithm provided in scenario (given in constructor)

Returns

portfolio – Portfolio of found configurations

Return type

List[Configuration]