File: resampleHist.Rd

package info (click to toggle)
r-cran-caret 7.0-1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,036 kB
  • sloc: ansic: 210; sh: 10; makefile: 2
file content (55 lines) | stat: -rw-r--r-- 1,422 bytes parent folder | download | duplicates (4)
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/resampleHist.R
\name{resampleHist}
\alias{resampleHist}
\title{Plot the resampling distribution of the model statistics}
\usage{
resampleHist(object, type = "density", ...)
}
\arguments{
\item{object}{an object resulting form a call to \code{\link{train}}}

\item{type}{a character string. Either "hist" or "density"}

\item{\dots}{options to pass to histogram or densityplot}
}
\value{
a object of class \code{trellis}
}
\description{
Create a lattice histogram or densityplot from the resampled outcomes from a
\code{train} object.
}
\details{
All the metrics from the object are plotted, but only for the final model.
For more comprehensive plots functions, see \code{\link{histogram.train}},
\code{\link{densityplot.train}}, \code{\link{xyplot.train}},
\code{\link{stripplot.train}}.

For the plot to be made, the \code{returnResamp} argument in
\code{\link{trainControl}} should be either "final" or "all".
}
\examples{


\dontrun{
data(iris)
TrainData <- iris[,1:4]
TrainClasses <- iris[,5]

knnFit <- train(TrainData, TrainClasses, "knn")

resampleHist(knnFit)
}

}
\seealso{
\code{\link{train}}, \code{\link[lattice]{histogram}},
\code{\link[lattice:histogram]{densityplot}}, \code{\link{histogram.train}},
\code{\link{densityplot.train}}, \code{\link{xyplot.train}},
\code{\link{stripplot.train}}
}
\author{
Max Kuhn
}
\keyword{hplot}