Skip to content

Commit

Permalink
Support XGBoost 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Nov 21, 2022
1 parent 582ad7e commit eb5ad48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/frontend/xgboost_json.cc
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,8 @@ bool LearnerParamHandler::String(const char *str,
output.param.global_bias) ||
assign_value("num_class", static_cast<unsigned int>(std::max(std::atoi(str), 1)),
output.task_param.num_class) ||
assign_value("num_feature", std::atoi(str), output.num_feature));
assign_value("num_feature", std::atoi(str), output.num_feature) ||
check_cur_key("boost_from_average"));
}

/******************************************************************************
Expand Down

0 comments on commit eb5ad48

Please sign in to comment.