View source: R/model_functions.R
model_functions | R Documentation |
Examples of model functions that can be used in
cross_validate_fn()
.
They can either be used directly or be starting points.
The update_hyperparameters()
function
updates the list of hyperparameters with default values for missing hyperparameters.
You can also specify required hyperparameters.
model_functions(name)
name |
Name of model to get model function for, as it appears in the following list:
|
A function with the following form:
function(train_data, formula, hyperparameters) {
# Return fitted model object
}
Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk
Other example functions:
predict_functions()
,
preprocess_functions()
,
update_hyperparameters()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.