find_template_formula_and_data: A convenient wrapper function for find_model for models that...

Description Usage Arguments Value Examples

View source: R/model_finder.R

Description

A convenient wrapper function for find_model for models that have a formula and data argument, like lm

Usage

1
find_template_formula_and_data(response, training_function, ...)

Arguments

response

The response column, as a string.

training_function

The function that trains the algorithm, such as lm

...

Named vectors of parameters to explore.

Value

A list that's compatible with the find_model function

Examples

1
2
3
4
# uses svm function from library e1071
find_template_formula_and_data(response = "response", training_function = svm,
    type = c("eps-regression", "nu-regression"),
    kernel = c("radial"), gamma = c(.001, .002, .003, .0008))

jeroenvdhoven/datapiper documentation built on July 14, 2019, 9:34 p.m.