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
bcdf1162
Unverified
Commit
bcdf1162
authored
Dec 07, 2020
by
Nikita Titov
Committed by
GitHub
Dec 07, 2020
Browse files
fix typo in dataset checks (#3631)
parent
2c958dd4
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 @
bcdf1162
...
@@ -766,7 +766,7 @@ void DatasetLoader::CheckDataset(const Dataset* dataset, bool is_load_from_binar
...
@@ -766,7 +766,7 @@ void DatasetLoader::CheckDataset(const Dataset* dataset, bool is_load_from_binar
int
label_idx
=
-
1
;
int
label_idx
=
-
1
;
if
(
Common
::
AtoiAndCheck
(
config_
.
label_column
.
c_str
(),
&
label_idx
))
{
if
(
Common
::
AtoiAndCheck
(
config_
.
label_column
.
c_str
(),
&
label_idx
))
{
if
(
dataset
->
label_idx_
!=
label_idx
)
{
if
(
dataset
->
label_idx_
!=
label_idx
)
{
Log
::
Fatal
(
"Dataset label_idx %d != config %d"
,
dataset
->
zero_as_missing_
,
config_
.
zero_as_missing
);
Log
::
Fatal
(
"Dataset label_idx %d != config %d"
,
dataset
->
label_idx_
,
label_idx
);
}
}
}
else
{
}
else
{
Log
::
Info
(
"Recommend use integer for label index when loading data from binary for sanity check."
);
Log
::
Info
(
"Recommend use integer for label index when loading data from binary for sanity check."
);
...
...
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