Skip to content

Commit

Permalink
informative error for custom obj in RF (#2355)
Browse files Browse the repository at this point in the history
  • Loading branch information
guolinke committed Aug 25, 2019
1 parent 0dfda82 commit 76e57c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/boosting/rf.hpp
Expand Up @@ -81,7 +81,7 @@ class RF : public GBDT {

void Boosting() override {
if (objective_function_ == nullptr) {
Log::Fatal("No object function provided");
Log::Fatal("RF mode do not support custom objective function, please use built-in objectives.");
}
init_scores_.resize(num_tree_per_iteration_, 0.0);
for (int cur_tree_id = 0; cur_tree_id < num_tree_per_iteration_; ++cur_tree_id) {
Expand Down

0 comments on commit 76e57c5

Please sign in to comment.