Tune a neural network model
tl_tune_nn(
data,
formula,
is_classification = FALSE,
sizes = c(1, 2, 5, 10),
decays = c(0, 0.001, 0.01, 0.1),
folds = 5,
...
)A list with the best model and tuning results
A data frame containing the training data
A formula specifying the model
Logical indicating if this is a classification problem
Vector of hidden layer sizes to try
Vector of weight decay parameters to try
Number of cross-validation folds (default: 5)
Additional arguments to pass to nnet()