Description Usage Arguments Details Value See Also
This function performs cross-validation to select values of tuning parameters.
1 2 3 4 5 6 7 8 9 10 11 |
y |
A |
x |
A |
n_folds |
Number of folds in the CV. |
kernel |
The kernel to use. Either |
lambda |
The regularization parameter(s). |
sigma2 |
The scale(s) in the |
d |
The degree(s) in the |
threshold |
The convergence threshold. |
max_iter |
The maximum number of iterations. |
The gaussian kernel has the following form:
exp(-||x-y||^2/sigma2).
The polynomial kernel has the following form:
(1+x'y/sigma2)^d.
A list containing:
mpeThe mean prediction error across all folds for all combinations of parameters.
lambda_minThe selected value of lambda.
sigma2_minThe selected value of sigma2.
d_minThe selected value of d.
KLR
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.