Unverified Commit 76e57c5d authored by Guolin Ke's avatar Guolin Ke Committed by GitHub
Browse files

informative error for custom obj in RF (#2355)

parent 0dfda826
......@@ -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) {
......
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