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
d56a7a3c
Unverified
Commit
d56a7a3c
authored
Jun 17, 2024
by
Ikko Eltociear Ashimine
Committed by
GitHub
Jun 16, 2024
Browse files
chore: update dataset_loader.cpp (#6483)
parent
b96d0240
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/io/dataset_loader.cpp
src/io/dataset_loader.cpp
+2
-2
No files found.
src/io/dataset_loader.cpp
View file @
d56a7a3c
...
...
@@ -274,7 +274,7 @@ Dataset* DatasetLoader::LoadFromFile(const char* filename, int rank, int num_mac
dataset
.
reset
(
LoadFromBinFile
(
filename
,
bin_filename
.
c_str
(),
rank
,
num_machines
,
&
num_global_data
,
&
used_data_indices
));
// checks whether there's a initial score file when loaded from binary data files
// the intial score file should with suffix ".bin.init"
// the in
i
tial score file should with suffix ".bin.init"
dataset
->
metadata_
.
LoadInitialScore
(
bin_filename
);
dataset
->
device_type_
=
config_
.
device_type
;
...
...
@@ -344,7 +344,7 @@ Dataset* DatasetLoader::LoadFromFileAlignWithOtherDataset(const char* filename,
// load data from binary file
dataset
.
reset
(
LoadFromBinFile
(
filename
,
bin_filename
.
c_str
(),
0
,
1
,
&
num_global_data
,
&
used_data_indices
));
// checks whether there's a initial score file when loaded from binary data files
// the intial score file should with suffix ".bin.init"
// the in
i
tial score file should with suffix ".bin.init"
dataset
->
metadata_
.
LoadInitialScore
(
bin_filename
);
}
// not need to check validation data
...
...
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