Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
8dde2310
Commit
8dde2310
authored
Jul 05, 2017
by
Preston Parry
Committed by
Guolin Ke
Jul 06, 2017
Browse files
minor update to language for early stopping (#672)
thanks for building in early_stopping! super useful.
parent
13ce3dc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python-package/lightgbm/callback.py
python-package/lightgbm/callback.py
+1
-1
No files found.
python-package/lightgbm/callback.py
View file @
8dde2310
...
...
@@ -172,7 +172,7 @@ def early_stopping(stopping_rounds, verbose=True):
raise
ValueError
(
'For early stopping, at least one dataset and eval metric is required for evaluation'
)
if
verbose
:
msg
=
"Train until valid scores d
id
n't improve
in
{} rounds."
msg
=
"Train
ing
until valid
ation
scores d
o
n't improve
for
{} rounds."
print
(
msg
.
format
(
stopping_rounds
))
for
eval_ret
in
env
.
evaluation_result_list
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment