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
512e0c34
Commit
512e0c34
authored
Mar 31, 2017
by
Guolin Ke
Browse files
fix warning.
parent
cccd0587
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 @
512e0c34
...
@@ -419,7 +419,7 @@ bool GBDT::TrainOneIter(const score_t* gradient, const score_t* hessian, bool is
...
@@ -419,7 +419,7 @@ bool GBDT::TrainOneIter(const score_t* gradient, const score_t* hessian, bool is
UpdateScoreOutOfBag
(
new_tree
.
get
(),
curr_class
);
UpdateScoreOutOfBag
(
new_tree
.
get
(),
curr_class
);
}
else
{
}
else
{
// only add default score one-time
// only add default score one-time
if
(
!
class_need_train_
[
curr_class
]
&&
models_
.
size
()
<
num_class_
)
{
if
(
!
class_need_train_
[
curr_class
]
&&
models_
.
size
()
<
static_cast
<
size_t
>
(
num_class_
)
)
{
auto
output
=
class_default_output_
[
curr_class
];
auto
output
=
class_default_output_
[
curr_class
];
new_tree
->
Split
(
0
,
0
,
BinType
::
NumericalBin
,
0
,
0
,
0
,
new_tree
->
Split
(
0
,
0
,
BinType
::
NumericalBin
,
0
,
0
,
0
,
output
,
output
,
0
,
num_data_
,
1
);
output
,
output
,
0
,
num_data_
,
1
);
...
...
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