Skip to content

Commit

Permalink
Merge pull request #68 from gen740/fix_import_statement
Browse files Browse the repository at this point in the history
Fix unused (and unintended) import
  • Loading branch information
contramundum53 authored Feb 6, 2024
2 parents b9f6072 + dd7a784 commit 6462be5
Showing 1 changed file with 1 addition and 3 deletions.
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

0 comments on commit 6462be5

Please sign in to comment.