Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unused (and unintended) import #68

Merged
merged 2 commits into from
Feb 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions tests/importance_tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

import numpy as np
import optuna
from optuna import samplers
from optuna.importance import get_param_importances
import optuna.integration.shap
from optuna.samplers import RandomSampler
from optuna.study import create_study
from optuna.testing.objectives import pruned_objective
Expand Down Expand Up @@ -62,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(
Expand Down
Loading