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
98e5a210
Unverified
Commit
98e5a210
authored
Apr 16, 2021
by
Chen Yufei
Committed by
GitHub
Apr 15, 2021
Browse files
fix: Dataset::CreateValid init fields which saves to binary (#4177)
parent
7ba59567
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/io/dataset.cpp
src/io/dataset.cpp
+5
-0
No files found.
src/io/dataset.cpp
View file @
98e5a210
...
...
@@ -727,6 +727,11 @@ void Dataset::CreateValid(const Dataset* dataset) {
feature_groups_
.
clear
();
num_features_
=
dataset
->
num_features_
;
num_groups_
=
num_features_
;
max_bin_
=
dataset
->
max_bin_
;
min_data_in_bin_
=
dataset
->
min_data_in_bin_
;
bin_construct_sample_cnt_
=
dataset
->
bin_construct_sample_cnt_
;
use_missing_
=
dataset
->
use_missing_
;
zero_as_missing_
=
dataset
->
zero_as_missing_
;
feature2group_
.
clear
();
feature2subfeature_
.
clear
();
has_raw_
=
dataset
->
has_raw
();
...
...
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