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
7193c30f
Commit
7193c30f
authored
Oct 04, 2017
by
Guolin Ke
Committed by
Qiwei Ye
Oct 04, 2017
Browse files
Warning message for "Cannot construct Dataset since there are not useful features" (#957)
* Update dataset.cpp * Update dataset.cpp
parent
589541e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/io/dataset.cpp
src/io/dataset.cpp
+4
-1
No files found.
src/io/dataset.cpp
View file @
7193c30f
...
...
@@ -226,7 +226,10 @@ void Dataset::Construct(
}
}
if
(
used_features
.
empty
())
{
Log
::
Fatal
(
"Cannot construct Dataset since there are not useful features."
);
Log
::
Fatal
(
"Cannot construct Dataset since there are not useful features. \
It should be at least two unique rows. \
If the num_row (num_data) is small, you can set min_data=1 and min_data_in_bin=1 to fix this. \
Otherwise please make sure you are using the right dataset."
);
}
auto
features_in_group
=
NoGroup
(
used_features
);
...
...
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