parent
99a290489c
commit
9b917cda4f
@ -231,8 +231,8 @@ private[spark] trait ParamMapFuncs extends Params {
|
|||||||
def XGBoostToMLlibParams(xgboostParams: Map[String, Any]): Unit = {
|
def XGBoostToMLlibParams(xgboostParams: Map[String, Any]): Unit = {
|
||||||
for ((paramName, paramValue) <- xgboostParams) {
|
for ((paramName, paramValue) <- xgboostParams) {
|
||||||
if ((paramName == "booster" && paramValue != "gbtree") ||
|
if ((paramName == "booster" && paramValue != "gbtree") ||
|
||||||
(paramName == "updater" && (paramValue != "grow_histmaker,prune" ||
|
(paramName == "updater" && paramValue != "grow_histmaker,prune" &&
|
||||||
paramValue != "hist"))) {
|
paramValue != "hist")) {
|
||||||
throw new IllegalArgumentException(s"you specified $paramName as $paramValue," +
|
throw new IllegalArgumentException(s"you specified $paramName as $paramValue," +
|
||||||
s" XGBoost-Spark only supports gbtree as booster type" +
|
s" XGBoost-Spark only supports gbtree as booster type" +
|
||||||
" and grow_histmaker,prune or hist as the updater type")
|
" and grow_histmaker,prune or hist as the updater type")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user