Predict with a gradient-boosting model
Usage
morie_esl_gbm_predict(model, X)
Arguments
- model
Result of morie_esl_gbm.
- X
Rows to predict.
Value
Numeric predictions.
Examples
i <- 1:60
X <- cbind(((7 * i) %% 59) / 59 * 3, ((11 * i) %% 61) / 61 * 2)
m <- morie_esl_gbm(X, sin(2 * X[, 1]), M = 10, max_depth = 1)
morie_esl_gbm_predict(m, rbind(c(0.5, 0.3)))
#> [1] 0.4244447