print.train
From caret v4.65
by Max Kuhn
Print Method for the train Class
Print the results of a train
object.
- Keywords
Usage
## S3 method for class 'train':
print(x,
digits = min(3, getOption("digits") - 3),
printCall = TRUE,
details = FALSE,
...)
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
- 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 ifdetails = TRUE
- ...
- options passed to the generic print method
Details
The table of complexity parameters used, their resampled performance and a flag for which rows are optimal.
Value
- A data frame with the complexity parameter(s) and performance (invisibly).
See Also
Examples
data(iris)
TrainData <- iris[,1:4]
TrainClasses <- iris[,5]
library(klaR)
rdaFit <- train(TrainData, TrainClasses, "rda",
control = trainControl(method = "cv"))
print(rdaFit)
Community examples
Looks like there are no examples yet.