| interpret-surrogate-methods | R Documentation |
These methods provide the standard print(), summary(), and plot()
interfaces for funcml_surrogate objects returned by
interpret(method = "surrogate").
## S3 method for class 'funcml_surrogate'
plot(x, ...)
## S3 method for class 'funcml_surrogate'
print(x, ...)
## S3 method for class 'funcml_surrogate'
summary(object, ...)
x |
A |
... |
Additional arguments passed to the underlying method. |
object |
A |
plot() returns a ggplot2 object. print() returns the input
object invisibly. summary() returns the surrogate model summary object
invisibly.
fit_obj <- fit(mpg ~ wt + hp + disp, data = mtcars, model = "rpart",
spec = list(cp = 0.01, minsplit = 5))
surrogate <- interpret(
fit = fit_obj,
data = mtcars,
method = "surrogate"
)
print(surrogate)
summary(surrogate)
plot(surrogate)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.