View source: R/helper_function.R

choose_rho | R Documentation |

This function draws error curve using cross-validation.

choose_rho(data, n_fold, rho)

`data` |
This is a matrix. |

`n_fold` |
This parameter specifies the n number in n-fold cross_validation. |

`rho` |
This is the regularization parameter values to be evalueated in terms their errors. |

A list of errors and their corresponding *log(rho)*.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.