Skip to contents

Classify with an AdaBoost committee

Usage

morie_esl_adaboost_predict(model, X)

Arguments

model

Result of morie_esl_adaboost.

X

Rows to classify.

Value

Labels in -1, +1 (sign of the weighted vote, ties to +1).

Examples

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