predict_functions {cvms} | R Documentation |
Examples of predict_fn functions
Description
Examples of predict functions that can be used in
cross_validate_fn()
.
They can either be used directly or be starting points.
Usage
predict_functions(name)
Arguments
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.
|
Value
A function with the following form:
function(test_data, model, formula, hyperparameters, train_data) {
# Use model to predict test_data
# Return predictions
}
Author(s)
Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk
See Also
Other example functions:
model_functions()
,
preprocess_functions()
,
update_hyperparameters()
[Package cvms version 1.6.1 Index]