Tunes the model according to the tuning grid, workflow, and data split specified.

tuneGrid(wflow, data_split, grid = buildTuningGrid(model = "LR"), n_fold = 5)

Arguments

wflow

A workflow object, such as the output of buildWflow()

data_split

An rsplit object, such as the output of splitMLInputTibble().

grid

A tuning grid as a tibble, such as the output of buildTuningGrid()

n_fold

pillar::num Number of folds of cross-validation

Value

Results of grid tuning