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
4ecd08cd
Unverified
Commit
4ecd08cd
authored
Dec 28, 2017
by
Guolin Ke
Committed by
GitHub
Dec 28, 2017
Browse files
quick fix #1147
parent
a5f43c9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
R-package/R/callback.R
R-package/R/callback.R
+1
-1
No files found.
R-package/R/callback.R
View file @
4ecd08cd
...
@@ -359,7 +359,7 @@ cb.early.stop <- function(stopping_rounds, verbose = TRUE) {
...
@@ -359,7 +359,7 @@ cb.early.stop <- function(stopping_rounds, verbose = TRUE) {
}
}
}
}
if
(
is
FALS
E
(
env
$
met_early_stop
)
&&
cur_iter
==
env
$
end_iteration
)
{
if
(
!
is
TRU
E
(
env
$
met_early_stop
)
&&
cur_iter
==
env
$
end_iteration
)
{
# Check if model is not null
# Check if model is not null
if
(
!
is.null
(
env
$
model
))
{
if
(
!
is.null
(
env
$
model
))
{
env
$
model
$
best_score
<-
best_score
[
i
]
env
$
model
$
best_score
<-
best_score
[
i
]
...
...
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