Random Planted Forest Predictions
Arguments
- object
A fit object of class
rpf
.- new_data
Data for new observations to predict.
- type
"numeric"
for regression outcomes,"class"
for class predictions or"prob"
for probability predictions.For classification and
loss = "L1"
or"L2"
,"numeric"
yields raw predictions which are not guaranteed to be valid probabilities in[0, 1]
. Fortype = "prob"
, these are truncated to ensure this property.If
loss
is"logit"
or"exponential"
,type = "link"
is an alias fortype = "numeric"
, as in this case the raw predictions have the additional interpretation similar to the linear predictor in aglm
.- ...
Unused.
Value
For regression: A tbl
with column .pred
with
the same number of rows as new_data
.
For classification: A tbl
with one column for each
level in y
containing class probabilities if type = "prob"
.
For type = "class"
, one column .pred
with class predictions is returned.
For type = "numeric"
or "link"
, one column .pred
with raw predictions.