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
1abc2e06
Unverified
Commit
1abc2e06
authored
Jan 11, 2021
by
Belinda Trotta
Committed by
GitHub
Jan 11, 2021
Browse files
Initialize any_nan_ property of LinearTreeLearner (#3709)
parent
a86a211b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/treelearner/linear_tree_learner.cpp
src/treelearner/linear_tree_learner.cpp
+1
-0
No files found.
src/treelearner/linear_tree_learner.cpp
View file @
1abc2e06
...
@@ -34,6 +34,7 @@ void LinearTreeLearner::InitLinear(const Dataset* train_data, const int max_leav
...
@@ -34,6 +34,7 @@ void LinearTreeLearner::InitLinear(const Dataset* train_data, const int max_leav
}
}
}
}
}
}
any_nan_
=
false
;
for
(
int
feat
=
0
;
feat
<
train_data
->
num_features
();
++
feat
)
{
for
(
int
feat
=
0
;
feat
<
train_data
->
num_features
();
++
feat
)
{
if
(
contains_nan_
[
feat
])
{
if
(
contains_nan_
[
feat
])
{
any_nan_
=
true
;
any_nan_
=
true
;
...
...
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