Skip to content

Commit ecf9485

Browse files
removed sampler and some imports in the hope of fixing workflow runs
1 parent 57bb691 commit ecf9485

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

openml/openml_simple.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from openml.extensions.sklearn import cat
1717
from openml.extensions.sklearn import cont
1818
import optuna
19-
import optunahub
2019
from sklearn.compose import ColumnTransformer
2120
from sklearn.ensemble import RandomForestClassifier
2221
from sklearn.impute import SimpleImputer
@@ -60,7 +59,6 @@
6059
# =====================================================
6160

6261
## Optuna explanation
63-
# Since we use `OptunaHub <https://hub.optuna.org/>`__ for the benchmarking of hyperparameter optimization,
6462
# we follow the `Optuna <https://github.com/optuna/optuna/>`__ search space design.
6563

6664
## OpenML runs
@@ -99,17 +97,10 @@ def objective(trial: optuna.Trial) -> Pipeline:
9997
return accuracy
10098

10199

102-
############################################################################
103-
# Load a sampler from OptunaHub
104-
# =============================
105-
sampler = optunahub.load_module("samplers/hebo").HEBOSampler(seed=seed)
106-
107-
logger.log(0, f"Sampler used {sampler}")
108-
109100
############################################################################
110101
# Optimize the pipeline
111102
# =====================
112-
study = optuna.create_study(direction="maximize", sampler=sampler)
103+
study = optuna.create_study(direction="maximize")
113104
logger.log(0, f"Study {study}")
114105
study.optimize(objective, n_trials=15)
115106

openml/requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
openml>=0.15.1
2-
optunahub
3-
hebo
2+
plotly

0 commit comments

Comments
 (0)