2.5.0: Optuna callback
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
- log stage template by @dberenbaum in #497
- Added Optuna callback. by @daavoo in #356
- frameworks: Use
log_artifact
. by @daavoo in #500
Full Changelog: 2.4.0...2.5.0