Makes predictions based on booster function
# S3 method for booster
predict(object, newdata, type = "pred", print_detail = FALSE, ...)# S3 method for discrete_adaboost
predict(object, newdata, type = "pred", print_detail = FALSE, ...)
# S3 method for real_adaboost
predict(object, newdata, type = "pred", print_detail = FALSE, ...)
booster object
a factor class variable. Boosting algorithm allows for
pre-ready or a custom classifier function.
prints the prediction process. Default is FALSE.
additional arguments.
A vector of class predictions or a matrix of class probabilities
depending of type
Type "pred" will give class predictions. "prob" will give probabilities for each class.
[predict()]