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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/print.train.R
\name{print.train}
\alias{print.train}
\title{Print Method for the train Class}
\usage{
\method{print}{train}(
x,
printCall = FALSE,
details = FALSE,
selectCol = FALSE,
showSD = FALSE,
...
)
}
\arguments{
\item{x}{an object of class \code{\link{train}}.}
\item{printCall}{a logical to print the call at the top of the output}
\item{details}{a logical to show print or summary methods for the final
model. In some cases (such as \code{gbm}, \code{knn}, \code{lvq}, naive
Bayes and bagged tree models), no information will be printed even if
\code{details = TRUE}}
\item{selectCol}{a logical whether to add a column with a star next to the
selected parameters}
\item{showSD}{a logical whether to show the standard deviation of the
resampling results within parentheses (e.g. "4.24 (0.493)")}
\item{\dots}{options passed to \code{\link[base]{format}}}
}
\value{
A matrix with the complexity parameters and performance (invisibly).
}
\description{
Print the results of a \code{\link{train}} object.
}
\details{
The table of complexity parameters used, their resampled performance and a
flag for which rows are optimal.
}
\examples{
\dontrun{
data(iris)
TrainData <- iris[,1:4]
TrainClasses <- iris[,5]
options(digits = 3)
library(klaR)
rdaFit <- train(TrainData, TrainClasses, method = "rda",
control = trainControl(method = "cv"))
rdaFit
print(rdaFit, showSD = TRUE)
}
}
\seealso{
\code{\link{train}}
}
\author{
Max Kuhn
}
\keyword{print}
|