predict-fftreeModel-method: Predictions from a fftree objects

predict,fftreeModel-methodR Documentation

Predictions from a fftree objects

Description

Return predicted responses or measures of performance from a fitted fftreeModel-class object

Usage

## S4 method for signature 'fftreeModel'
predict(object, newdata, type = "response", ...)

Arguments

object

an S4 object of class fftreeModel-class created by fftree function

newdata

a data frame or matrix containing new data

type

character string denoting the type of output returned. response (default) returns the predicted class label, metric returns the classification performance and frugality returns the average number of nodes visisted until a decision was made.

...

additional arguments that are only used if the function is called internally


marcusbuckmann/ffcr documentation built on Jan. 4, 2024, 3:45 p.m.