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
c61f0d2e
Unverified
Commit
c61f0d2e
authored
Feb 18, 2022
by
chjinche
Committed by
GitHub
Feb 18, 2022
Browse files
pass train dataset parser config to valid dataset loading parser (#4985)
parent
9259a531
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/io/dataset_loader.cpp
src/io/dataset_loader.cpp
+1
-1
No files found.
src/io/dataset_loader.cpp
View file @
c61f0d2e
...
...
@@ -291,7 +291,7 @@ Dataset* DatasetLoader::LoadFromFileAlignWithOtherDataset(const char* filename,
auto
bin_filename
=
CheckCanLoadFromBin
(
filename
);
if
(
bin_filename
.
size
()
==
0
)
{
auto
parser
=
std
::
unique_ptr
<
Parser
>
(
Parser
::
CreateParser
(
filename
,
config_
.
header
,
0
,
label_idx_
,
config_
.
precise_float_parser
,
data
set
->
parser_config_str_
));
config_
.
precise_float_parser
,
train_
data
->
parser_config_str_
));
if
(
parser
==
nullptr
)
{
Log
::
Fatal
(
"Could not recognize data format of %s"
,
filename
);
}
...
...
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