R/esl_native_trees.R
morie_esl_adaboost_predict.Rd
Classify with an AdaBoost committee
morie_esl_adaboost_predict(model, X)
Result of morie_esl_adaboost.
Rows to classify.
Labels in -1, +1 (sign of the weighted vote, ties to +1).
i <- 1:40 X <- cbind(sin(i), cos(3 * i)) m <- morie_esl_adaboost(X, ifelse(X[, 1] + X[, 2] > 0, 1, -1), M = 5) morie_esl_adaboost_predict(m, rbind(c(0.5, 0.5))) #> [1] 1