tune-methods: Methods for tuning results.

tune-methodsR Documentation

Methods for tuning results.

Description

These methods provide the standard print(), summary(), and plot() interfaces for funcml_tune objects.

Usage

## S3 method for class 'funcml_tune'
print(x, digits = 4L, ...)

## S3 method for class 'funcml_tune'
summary(object, digits = 4L, ...)

## S3 method for class 'funcml_tune'
plot(x, ...)

Arguments

x

A funcml_tune object.

digits

Number of digits numeric columns are rounded to when printed.

...

Additional arguments passed to the underlying method.

object

A funcml_tune object.

Value

print() and summary() return the input object or results table invisibly. plot() returns a ggplot2 object.

Examples

tune_obj <- tune(
  data = mtcars,
  formula = mpg ~ wt + hp,
  model = "rpart",
  grid = expand.grid(cp = c(0.001, 0.01), minsplit = c(5, 10)),
  resampling = cv(3, seed = 1),
  metric = "rmse"
)
print(tune_obj)
summary(tune_obj)
plot(tune_obj)

funcml documentation built on Aug. 22, 2026, 5:08 p.m.