caret (version 6.0-64)

print.train: Print Method for the train Class

Description

Print the results of a train object.

Usage

## S3 method for class 'train':
print(x,
      printCall = FALSE,
      details = FALSE,
      selectCol = FALSE,
      ...)

Arguments

x
an object of class train.
printCall
a logical to print the call at the top of the output
details
a logical to show print or summary methods for the final model. In some cases (such as gbm, knn, lvq, naive Bayes and bagged tree models), no information will be printed even if details = TRUE
selectCol
a logical whether to add a column with a star next to the selected parameters
...
options passed to format

Value

  • A matrix with the complexity parameters 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, method = "rda",
                control = trainControl(method = "cv"))
print(rdaFit)

Run the code above in your browser using DataCamp Workspace