Revision 768a94f53fa2e087592fd71d3b7566d0b3776540 authored by pat-s on 15 March 2020, 21:25:27 UTC, committed by pat-s on 15 March 2020, 21:25:27 UTC
1 parent 527ab33
Prediction.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Prediction.R
\name{Prediction}
\alias{Prediction}
\alias{makePrediction}
\title{Prediction object.}
\usage{
makePrediction(
task.desc,
row.names,
id,
truth,
predict.type,
predict.threshold = NULL,
y,
time,
error = NA_character_,
dump = NULL
)
}
\description{
Result from \link{predict.WrappedModel}.
Use \code{as.data.frame} to access all information in a convenient format.
The function \link{getPredictionProbabilities} is useful to access predicted probabilities.
The \code{data} member of the object contains always the following columns:
\code{id}, index numbers of predicted cases from the task, \code{response}
either a numeric or a factor, the predicted response values, \code{truth},
either a numeric or a factor, the true target values.
If probabilities were predicted, as many numeric columns as there were classes named
\code{prob.classname}. If standard errors were predicted, a numeric column named \code{se}.
The constructor \code{makePrediction} is mainly for internal use.
Object members:
\describe{
\item{predict.type (\code{character(1)})}{Type set in \link{setPredictType}.}
\item{data (\link{data.frame})}{See details.}
\item{threshold (\code{numeric(1)})}{Threshold set in predict function.}
\item{task.desc (\link{TaskDesc})}{Task description object.}
\item{time (\code{numeric(1)})}{Time learner needed to generate predictions.}
\item{error (\code{character(1)})}{Any error messages generated by the learner (default NA_character_).}
}
Internal, do not use!
}
\keyword{internal}
Computing file changes ...