% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/adapters.R
\name{get_ensemble_predictions}
\alias{get_ensemble_predictions}
\title{Get Training Predictions from an Ensemble Model}
\usage{
get_ensemble_predictions(ensemble, data, type)
}
\arguments{
\item{ensemble}{A trained ensemble model.}

\item{data}{The training \code{data.frame} that was used to fit the model.}

\item{type}{Character: \code{"classification"} or \code{"regression"}.}
}
\value{
Numeric vector of length \code{nrow(data)}.
}
\description{
Returns a numeric vector of length \code{n_obs} with the ensemble's
prediction for every training observation. For models that store
out-of-bag (OOB) predictions (\code{randomForest}, \code{ranger}) the
stored OOB vector is returned; for other models in-sample predictions
are computed from the training data.
}
