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