Skill 2.1.4
Automate hyperparameter tuning
Key Concepts
A sweep job wraps a command job with a search space of hyperparameter expressions such as choice, uniform, loguniform and normal, a sampling algorithm and an objective: the primary_metric logged by the script and the goal, maximize or minimize. Random sampling picks values at random, grid sampling tries every combination of choice values, and Bayesian sampling chooses each new trial based on earlier results.
Limits cap the total and concurrent trials and the run time. An early termination policy stops trials that are unlikely to win: the Bandit policy stops trials outside a slack factor or amount of the best run, median stopping stops trials below the median of running averages, and truncation selection cancels a percentage of the lowest performers at each interval. Bayesian sampling does not support early termination.