tune (version 0.1.2)

tune: A placeholder function for argument values that are to be tuned.

Description

tune() is used when a parameter will be specified at a later date.

Usage

tune(id = "")

Arguments

id

A single character value that can be used to differentiate parameters that are used in multiple places but have the same name, or if the user wants a note associated with the parameter.

Value

A call object that echos the user input.

See Also

tune_grid(), tune_bayes()

Examples

Run this code
# NOT RUN {
tune()
class(tune())
tune("your name here")

# How `tune()` is used in practice:

library(parsnip)
nearest_neighbor(
  neighbors = tune("K"),
  weight_func = tune(),
  dist_power = tune()
)
# }

Run the code above in your browser using DataLab