Skip to content

Commit

Permalink
Warning message for "Cannot construct Dataset since there are not use…
Browse files Browse the repository at this point in the history
…ful features" (#957)

* Update dataset.cpp

* Update dataset.cpp
  • Loading branch information
guolinke authored and chivee committed Oct 4, 2017
1 parent 589541e commit 7193c30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/io/dataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7193c30

Please sign in to comment.