Description Usage Arguments Details Value Author(s) See Also Examples
Print the results of a train
object.
1 2 3 4 5 6 7 |
x |
an object of class |
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 |
selectCol |
a logical to a column with a star next to the final model |
... |
options passed to the generic print method |
The table of complexity parameters used, their resampled performance and a flag for which rows are optimal.
A data frame with the complexity parameter(s) and performance (invisibly).
Max Kuhn
1 2 3 4 5 6 7 8 9 10 11 |
Loading required package: lattice
Loading required package: ggplot2
Loading required package: MASS
Regularized Discriminant Analysis
150 samples
4 predictor
3 classes: 'setosa', 'versicolor', 'virginica'
No pre-processing
Resampling: Bootstrapped (25 reps)
Summary of sample sizes: 150, 150, 150, 150, 150, 150, ...
Resampling results across tuning parameters:
gamma lambda Accuracy Kappa
0.0 0.0 0.9714363 0.9566049
0.0 0.5 0.9780563 0.9667054
0.0 1.0 0.9771220 0.9652933
0.5 0.0 0.9571874 0.9352000
0.5 0.5 0.9571490 0.9351507
0.5 1.0 0.9616586 0.9420054
1.0 0.0 0.9166619 0.8737580
1.0 0.5 0.9160622 0.8728235
1.0 1.0 0.9167402 0.8738876
Accuracy was used to select the optimal model using the largest value.
The final values used for the model were gamma = 0 and lambda = 0.5.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.