choose_rho: Draw error curve

Description Usage Arguments Value

View source: R/helper_function.R

Description

This function draws error curve using cross-validation.

Usage

1
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).


INDEED documentation built on Nov. 8, 2020, 11:12 p.m.