View source: R/deep-ensembles.R
ensemble.deepregression | R Documentation |
Ensemblind deepregression models
## S3 method for class 'deepregression' ensemble( x, n_ensemble = 5, reinitialize = TRUE, mylapply = lapply, verbose = FALSE, patience = 20, plot = TRUE, print_members = TRUE, stop_if_nan = TRUE, save_weights = TRUE, callbacks = list(), save_fun = NULL, seed = seq_len(n_ensemble), ... )
x |
object of class |
n_ensemble |
numeric; number of ensemble members to fit |
reinitialize |
logical; if |
mylapply |
lapply function to be used; defaults to |
verbose |
whether to print training in each fold |
patience |
number of patience for early stopping |
plot |
whether to plot the resulting losses in each fold |
print_members |
logical; print results for each member |
stop_if_nan |
logical; whether to stop CV if NaN values occur |
save_weights |
whether to save final weights of each ensemble member;
defaults to |
callbacks |
a list of callbacks used for fitting |
save_fun |
function applied to the model in each fold to be stored in the final result |
seed |
seed for reproducibility |
... |
further arguments passed to |
object of class "drEnsemble"
, containing the original
"deepregression"
model together with a list of ensembling
results (training history and, if save_weights
is TRUE
,
the trained weights of each ensemble member)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.