Predicts labels or per-group one-hot proportions from a pptr model (classification mode).
predict.pptr_classification.RdPredicts labels or per-group one-hot proportions from a pptr model (classification mode).
Usage
# S3 method for class 'pptr_classification'
predict(object, new_data = NULL, type = NULL, ...)Arguments
- object
A
pptr_classificationmodel.- new_data
A data frame or matrix of new observations. If
NULL, the first positional argument in...is used for backward compatibility.- type
"class"(default) returns a factor of predicted labels;"prob"returns a data frame with 1.0 for the predicted group and 0.0 elsewhere.- ...
Backward-compat positional `new_data`.