"vscode:/vscode.git/clone" did not exist on "408f0de6be0f1939517344bb5a413d63aac73bbd"
Commit 7193c30f authored by Guolin Ke's avatar Guolin Ke Committed by Qiwei Ye
Browse files

Warning message for "Cannot construct Dataset since there are not useful features" (#957)

* Update dataset.cpp

* Update dataset.cpp
parent 589541e5
...@@ -226,7 +226,10 @@ void Dataset::Construct( ...@@ -226,7 +226,10 @@ void Dataset::Construct(
} }
} }
if (used_features.empty()) { 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); auto features_in_group = NoGroup(used_features);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment