From dd7a78483a49282e77236477f0b3d9ba70f93d18 Mon Sep 17 00:00:00 2001 From: gen740 Date: Fri, 2 Feb 2024 15:49:00 +0900 Subject: [PATCH] Also delete duplicated import --- tests/importance_tests/test_init.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/importance_tests/test_init.py b/tests/importance_tests/test_init.py index 1b1d0dd19..69edcf8e0 100644 --- a/tests/importance_tests/test_init.py +++ b/tests/importance_tests/test_init.py @@ -2,7 +2,6 @@ import numpy as np import optuna -from optuna import samplers from optuna.importance import get_param_importances from optuna.samplers import RandomSampler from optuna.study import create_study @@ -61,7 +60,7 @@ def objective(trial: Trial) -> float: return value with StorageSupplier(storage_mode) as storage: - study = create_study(storage=storage, sampler=samplers.RandomSampler()) + study = create_study(storage=storage, sampler=RandomSampler()) study.optimize(objective, n_trials=3) param_importance = get_param_importances(