From c1e8ea64a6dca50266939ab806d3518135a8bb9d Mon Sep 17 00:00:00 2001 From: c-bata Date: Wed, 24 Jan 2024 09:09:31 +0900 Subject: [PATCH] Fix deprecation warning in preferential tutorial --- optuna_dashboard/preferential/samplers/gp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/optuna_dashboard/preferential/samplers/gp.py b/optuna_dashboard/preferential/samplers/gp.py index 590c55701..24cea9a16 100644 --- a/optuna_dashboard/preferential/samplers/gp.py +++ b/optuna_dashboard/preferential/samplers/gp.py @@ -338,7 +338,8 @@ def sample_relative( trial: optuna.trial.FrozenTrial, search_space: dict[str, optuna.distributions.BaseDistribution], ) -> dict[str, Any]: - preferences = get_preferences(study.system_attrs) + study_system_attrs = study._storage.get_study_system_attrs(study._study_id) + preferences = get_preferences(study_system_attrs) if len(preferences) == 0 or len(search_space) == 0: return {}