choose_rho: Draw error curve

View source: R/helper_function.R

choose_rhoR Documentation

Draw error curve

Description

This function draws error curve using cross-validation.

Usage

choose_rho(data, n_fold, rho)

Arguments

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.

Value

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


ressomlab/INDEED documentation built on Aug. 3, 2022, 4:45 p.m.