1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/estimateResidualVariance.R
\name{estimateResidualVariance}
\alias{estimateResidualVariance}
\title{Estimate the residual variance.}
\usage{
estimateResidualVariance(x, task, data, target)
}
\arguments{
\item{x}{(\link{Learner} or \link{WrappedModel})\cr
Learner or wrapped model.}
\item{task}{(\link{RegrTask})\cr
Regression task.
If missing, \code{data} and \code{target} must be supplied.}
\item{data}{(\link{data.frame})\cr
A data frame containing the features and target variable.
If missing, \code{task} must be supplied.}
\item{target}{(\code{character(1)})\cr
Name of the target variable.
If missing, \code{task} must be supplied.}
}
\description{
Estimate the residual variance of a regression model on a given task.
If a regression learner is provided instead of a model, the model is
trained (see \link{train}) first.
}
|