| compare-methods | R Documentation |
These methods provide the standard print(), summary(), and plot()
interfaces for funcml_compare objects.
## S3 method for class 'funcml_compare'
print(x, digits = 4L, ...)
## S3 method for class 'funcml_compare'
summary(object, digits = 4L, ...)
## S3 method for class 'funcml_compare'
plot(x, ...)
x |
A |
digits |
Number of digits numeric columns are rounded to when printed. |
... |
Additional arguments passed to the underlying method. |
object |
A |
print() and summary() return the input object or results table
invisibly. plot() returns a ggplot2 object.
cmp <- compare(
data = mtcars,
formula = mpg ~ wt + hp,
models = c("glm", "rpart"),
resampling = cv(3, seed = 1),
metrics = c("rmse", "mae")
)
print(cmp)
summary(cmp)
plot(cmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.