Nothing
#' @include get_predict.R
#' @rdname get_predict
#' @keywords internal
#' @export
get_predict.Learner <- function(model, newdata, type = NULL, ...) {
if (!is.null(type) && !type %in% model$predict_types) {
msg <- sprintf("Valid `type` values: %s", paste(model$predict_types, collapse = ", "))
insight::format_error(msg)
}
out <- drop(stats::predict(model, newdata = newdata, predict_type = type))
out <- data.frame(rowid = seq_along(out), estimate = out)
return(out)
}
#' @include get_vcov.R
#' @rdname get_vcov
#' @export
get_vcov.Learner <- function(model, ...) {
return(FALSE)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.