resampleHist {caret} | R Documentation |
Create a lattice histogram or densityplot from the resampled outcomes from a train
object.
resampleHist(object, type = "density", ...)
object |
an object resulting form a call to train |
type |
a character string. Either "hist" or "density" |
... |
options to pass to histogram or densityplot |
All the metrics from the object are plotted.
a object of class trellis
Max Kuhn
data(iris) TrainData <- iris[,1:4] TrainClasses <- iris[,5] knnFit <- train(TrainData, TrainClasses, "knn") resampleHist(knnFit)