View source: R/predict_functions.R
predict_functions | R Documentation |
Examples of predict functions that can be used in
cross_validate_fn()
.
They can either be used directly or be starting points.
predict_functions(name)
name |
Name of model to get predict function for, as it appears in the following table. The Model HParams column lists hyperparameters used in the respective model function.
|
A function with the following form:
function(test_data, model, formula, hyperparameters, train_data) {
# Use model to predict test_data
# Return predictions
}
Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk
Other example functions:
model_functions()
,
preprocess_functions()
,
update_hyperparameters()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.