Description Usage Arguments Value Examples
View source: R/build-base-ensemble.r
Using the parameter specifications from
model_specs-class
, this function trains
a set of regression models.
1 | build_base_ensemble(form, data, specs, num_cores = 1)
|
form |
formula; |
data |
data.frame for training the predictive models; |
specs |
object of class |
num_cores |
number of cores |
An S4 class with the following slots: base_models, a list containing the trained models; pre_weights, a numeric vector describing the weights of the base models according to their performance in the training data; and colnames, the column names of the data, used for reference.
1 2 3 4 | data("water_consumption")
dataset <- embed_timeseries(water_consumption, 5)
specs <- model_specs(c("bm_ppr","bm_svr"), NULL)
M <- build_base_ensemble(target ~., dataset, specs, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.