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
5543979b
".github/vscode:/vscode.git/clone" did not exist on "5a1fe74ecdc2e520265e0fd8e439f5d602dacf8f"
Commit
5543979b
authored
Sep 11, 2017
by
Guolin Ke
Committed by
GitHub
Sep 11, 2017
Browse files
less verbosity
parent
54b04405
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/treelearner/serial_tree_learner.cpp
src/treelearner/serial_tree_learner.cpp
+2
-2
No files found.
src/treelearner/serial_tree_learner.cpp
View file @
5543979b
...
...
@@ -187,7 +187,7 @@ Tree* SerialTreeLearner::Train(const score_t* gradients, const score_t *hessians
const
SplitInfo
&
best_leaf_SplitInfo
=
best_split_per_leaf_
[
best_leaf
];
// cannot split, quit
if
(
best_leaf_SplitInfo
.
gain
<=
0.0
)
{
Log
::
Info
(
"No further splits with positive gain, best gain: %f"
,
best_leaf_SplitInfo
.
gain
);
Log
::
Warning
(
"No further splits with positive gain, best gain: %f"
,
best_leaf_SplitInfo
.
gain
);
break
;
}
#ifdef TIMETAG
...
...
@@ -200,7 +200,7 @@ Tree* SerialTreeLearner::Train(const score_t* gradients, const score_t *hessians
#endif
cur_depth
=
std
::
max
(
cur_depth
,
tree
->
leaf_depth
(
left_leaf
));
}
Log
::
Info
(
"Trained a tree with leaves=%d and max_depth=%d"
,
tree
->
num_leaves
(),
cur_depth
);
Log
::
Debug
(
"Trained a tree with leaves=%d and max_depth=%d"
,
tree
->
num_leaves
(),
cur_depth
);
return
tree
.
release
();
}
...
...
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