quick fix

This commit is contained in:
tqchen 2015-01-19 09:59:33 -08:00
parent 632fdbbf5c
commit 7c6cf4bad8

View File

@ -48,7 +48,7 @@ setMethod("predict", signature = "xgb.Booster",
if (predleaf) {
option <- option + 2
}
ret <- .Call("XGBoosterPredict_R", object, newdata, as.integer(predleaf), as.integer(ntreelimit), PACKAGE = "xgboost")
ret <- .Call("XGBoosterPredict_R", object, newdata, as.integer(option), as.integer(ntreelimit), PACKAGE = "xgboost")
return(ret)
})