R/ensemble.r

Defines functions new_ensemble

Documented in new_ensemble

#' Create a new ensemble of models.
#'
#' @keywords internal
#' @param models list of models
#' @param data associated data frame
new_ensemble <- function(models, data) {
  structure(models, data = data, class = "ensemble")
}

#' @export
"[.ensemble" <- function(x, i, ...) {
  structure(NextMethod(), class = "ensemble")
}

Try the meifly package in your browser

Any scripts or data that you put into this service are public.

meifly documentation built on May 2, 2019, 2:18 a.m.