Learn R Programming

tidylearn (version 0.1.0)

tl_predict_tree: Predict using a decision tree model

Description

Predict using a decision tree model

Usage

tl_predict_tree(model, new_data, type = "response", ...)

Value

Predictions

Arguments

model

A tidylearn tree model object

new_data

A data frame containing the new data

type

Type of prediction: "response" (default), "prob" (for classification), "class" (for classification)

...

Additional arguments