[jvm-packages] Fixed the distributed updater check (#3739)
The updater used in distributed training is grow_histmaker and not grow_colmaker as the error message stated prior to this commit.
This commit is contained in:
parent
70d208d68c
commit
87aca8c244
@ -224,10 +224,10 @@ private[spark] trait ParamMapFuncs extends Params {
|
||||
def XGBoostToMLlibParams(xgboostParams: Map[String, Any]): Unit = {
|
||||
for ((paramName, paramValue) <- xgboostParams) {
|
||||
if ((paramName == "booster" && paramValue != "gbtree") ||
|
||||
(paramName == "updater" && paramValue != "grow_colmaker,prune")) {
|
||||
(paramName == "updater" && paramValue != "grow_histmaker,prune")) {
|
||||
throw new IllegalArgumentException(s"you specified $paramName as $paramValue," +
|
||||
s" XGBoost-Spark only supports gbtree as booster type" +
|
||||
" and grow_colmaker,prune as the updater type")
|
||||
" and grow_histmaker,prune as the updater type")
|
||||
}
|
||||
val name = CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, paramName)
|
||||
params.find(_.name == name) match {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user