Learn R Programming

iml (version 0.1)

plot.TreeSurrogate: Surrogate tree visualisation

Description

Predict the response for newdata with the surrogate tree Each plot facet is one leaf node and visualises the distribution of the \(\hat{y}\) from the machine learning model. This makes the TreeSurrogate object call its iternal object$plot() method.

Usage

# S3 method for TreeSurrogate
plot(object)

Arguments

object

The surrogate tree. A TreeSurrogate R6 object

Value

ggplot2 plot object

Details

For examples see tree.surrogate

See Also

tree.surrogate