diff --git a/src/dvclive/optuna.py b/src/dvclive/optuna.py index e95f84fd..dd7c5d35 100644 --- a/src/dvclive/optuna.py +++ b/src/dvclive/optuna.py @@ -43,4 +43,4 @@ def _log_metrics(self, values, live): metrics = {name: val for name, val in zip(names, values)} for k, v in metrics.items(): - live.log_metric(k, v) + live.summary[k] = v diff --git a/tests/test_frameworks/test_optuna.py b/tests/test_frameworks/test_optuna.py index 8552eee9..ef1d4b80 100644 --- a/tests/test_frameworks/test_optuna.py +++ b/tests/test_frameworks/test_optuna.py @@ -25,3 +25,5 @@ def test_optuna_(tmp_dir, mocked_dvc_repo): assert metric_name in metrics params = load_yaml("dvclive-optuna/params.yaml") assert "x" in params + + assert not (tmp_dir / "dvclive-optuna" / "plots").exists()