Skip to content

2.5.0: Optuna callback

Compare
Choose a tag to compare
@daavoo daavoo released this 20 Mar 12:28
· 220 commits to main since this release
ef6affb

New features

dvclive.optuna

import optuna
from dvclive.optuna import DVCLiveCallback

def objective(trial):
    x = trial.suggest_float("x", -10, 10)
    return (x - 2) ** 2

study = optuna.create_study()

study.optimize(
    objective, n_trials=7, callbacks=[DVCLiveCallback()])

What's Changed

Full Changelog: 2.4.0...2.5.0