caret (version 2.27)

print.train: Print Method for the train Class

Description

Print the results of a train object.

Usage

print.train(x, digits = min(3, getOption("digits") - 3), printCall =
TRUE, ...)

Arguments

x
an object of class train.
digits
an integer specifying the number of significant digits to print.
printCall
a logical to print the call at the top of the output
...
options passed to the generic print method

Value

  • A data frame with the complexity parameter(s) and performance (invisibly).

Details

The table of complexity parameters used, their resampled performance and a flag for which rows are optimal.

See Also

train

Examples

Run this code
data(iris)
TrainData <- iris[,1:4]
TrainClasses <- iris[,5]

library(klaR)
rdaFit <- train(TrainData, TrainClasses, "rda", 
   control = trainControl(method = "cv")) 
print(rdaFit)

Run the code above in your browser using DataCamp Workspace