predict.booster: Prediction function for Adaboost framework

Description Usage Arguments Details Value See Also

View source: R/predict.booster.R

Description

Makes predictions based on booster function

Usage

1
2
3
4
5
6
7
8
## 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, ...)

Arguments

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 FALSE.

...

additional arguments.

Details

Type "pred" will give class predictions. "prob" will give probabilities for each class.

Value

A vector of class predictions or a matrix of class probabilities depending of type

See Also

[predict()]


rbooster documentation built on Oct. 27, 2021, 5:09 p.m.