Description Usage Arguments Value Examples
View source: R/optimize_ridge.R
This is a function to optimize the ridge penalty parameter.
1 | optimize_ridge(X, Y, lambdas, k)
|
X |
The input design matrix. |
Y |
The input response vector. |
lambdas |
The list of input penalty parameters. |
k |
An optional number k for k-fold cross-validation. |
The most optimal ridge parameter.
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.