hpo

The hpo config group controls hyperparameter optimization searches. It is triggered by the --multirun flag when invoking an mml experiment (see hydra’s documentation). If using an:class:~mml.interactive.planning.MMLJobDescription there is the multirun boolean flag.

use_best_params

Hyperparameter optimization

default

hpo
storage
default: null
  • the optuna storage to use, if null only a temporary in-memory storage will be created

  • see mml-sql for details on how to set up permanent storage

direction
default: minimize
  • direction of optimization, either minimize or maximize

  • must be set according to the kind of return value by the respective scheduler

pruning
default: False
trials
default: 100
  • number of trials, each trial is one mml call with (potentially) different sampled hyperparameters

grid

storage
  • this config corresponds to the default multirun variant of hydra

  • use colons to provide multiple values via CLI (the search_space config is not used!)

  • will sequentially run one exp for each possible combination of config values (using the colon syntax)

  • example: mml train tasks=fake proj=test hpo=grid optimizer.lr=0.001,0.01 --multirun

  • more details can be found in hydra’s multi-run documentation