choose_rho: Draw error curve

Description Usage Arguments Value

View source: R/helper_function.R

Description

Draw error curve using cross-validation.

Usage

1
choose_rho(data, n_fold, rho)

Arguments

data

a matrix.

n_fold

specify n to n-fold cross_validation.

rho

multiple regularization parameter values to be evalueated in terms of errors.

Value

a list of errors and their corresponding log(rho)


cx30/INDEED documentation built on May 5, 2019, 2:41 a.m.