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
5aaf976a
Commit
5aaf976a
authored
Oct 21, 2016
by
Guolin Ke
Committed by
GitHub
Oct 21, 2016
Browse files
warning fixed
parent
35d87188
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/boosting/gbdt.cpp
src/boosting/gbdt.cpp
+1
-1
No files found.
src/boosting/gbdt.cpp
View file @
5aaf976a
...
@@ -216,7 +216,7 @@ void GBDT::Train() {
...
@@ -216,7 +216,7 @@ void GBDT::Train() {
// close file
// close file
if
(
early_stopping_round_
>
0
)
{
if
(
early_stopping_round_
>
0
)
{
// save remaining models
// save remaining models
for
(
int
iter
=
gbdt_config_
->
num_iterations
-
early_stopping_round_
;
iter
<
models_
.
size
();
++
iter
){
for
(
int
iter
=
gbdt_config_
->
num_iterations
-
early_stopping_round_
;
iter
<
static_cast
<
int
>
(
models_
.
size
()
)
;
++
iter
){
fprintf
(
output_model_file
,
"Tree=%d
\n
"
,
iter
);
fprintf
(
output_model_file
,
"Tree=%d
\n
"
,
iter
);
fprintf
(
output_model_file
,
"%s
\n
"
,
models_
.
at
(
iter
)
->
ToString
().
c_str
());
fprintf
(
output_model_file
,
"%s
\n
"
,
models_
.
at
(
iter
)
->
ToString
().
c_str
());
}
}
...
...
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