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
a194045c
Commit
a194045c
authored
Oct 31, 2016
by
Guolin Ke
Committed by
GitHub
Oct 31, 2016
Browse files
fixed a bug in model output
parent
5d022898
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
src/boosting/gbdt.cpp
src/boosting/gbdt.cpp
+3
-5
No files found.
src/boosting/gbdt.cpp
View file @
a194045c
...
...
@@ -317,11 +317,9 @@ void GBDT::SaveModelToFile(bool is_finish, const char* filename) {
model_output_file_
<<
"Tree="
<<
i
<<
std
::
endl
;
model_output_file_
<<
models_
[
i
]
->
ToString
()
<<
std
::
endl
;
}
if
(
rest
>
0
)
{
saved_model_size_
=
rest
;
}
saved_model_size_
=
Common
::
Max
(
saved_model_size_
,
rest
);
model_output_file_
.
flush
();
// training finished, can close file
if
(
is_finish
)
{
...
...
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