Skip to content

Commit da2a042

Browse files
committed
early
1 parent 3a2b901 commit da2a042

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/bohb_example.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222
bohb_tune_search = TuneSearchCV(
2323
SGDClassifier(),
2424
param_distributions=param_dists,
25-
n_iter=2,
25+
n_iter=20,
2626
max_iters=10,
27+
verbose=2,
2728
search_optimization="bohb")
2829

2930
bohb_tune_search.fit(X_train, y_train)

tune_sklearn/tune_basesearch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,9 @@ def __init__(self,
256256
# the next block
257257
early_stopping = "AsyncHyperBandScheduler"
258258
# Resolve the early stopping object
259-
self.early_stopping = resolve_early_stopping(
259+
early_stopping = resolve_early_stopping(
260260
early_stopping, self.max_iters)
261+
self.early_stopping = early_stopping
261262

262263
self.cv = cv
263264
self.scoring = scoring

0 commit comments

Comments
 (0)