Description Usage Arguments Value
A very crude method to find the optimal lambda for a krr (kernel ridge regression) model.
1 | cv_krr(x, y, lambda_index)
|
x |
Quantitative explanatory variables (vector, matrix, or data.frame). |
y |
Quantitative response variable. |
lambda_index |
Vector of lambdas to scan for best model. |
Returns best lambda, MSE, and model. Also returns a dataframe of every lambda_index value and corresponding MSE.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.