Skip to content

Commit ee1daee

Browse files
committed
fix(callback): do not use early stopping in test_progress_bar_binary()
1 parent 8e52051 commit ee1daee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/python_package_test/test_callback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def test_progress_bar_binary():
8181
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.1, random_state=42)
8282
gbm = lgb.LGBMClassifier(n_estimators=50, verbose=-1)
8383
callback = lgb.progress_bar()
84-
gbm.fit(X_train, y_train, eval_set=[(X_test, y_test)], callbacks=[lgb.early_stopping(5), callback])
84+
gbm.fit(X_train, y_train, eval_set=[(X_test, y_test)], callbacks=[callback])
8585

8686
assert issubclass(callback.tqdm_cls, tqdm.std.tqdm)
8787
assert isinstance(callback.pbar, tqdm.std.tqdm)

0 commit comments

Comments
 (0)