coef.srm: Extracts a specific solution in the regularization path

View source: R/utils.R

coef.srmR Documentation

Extracts a specific solution in the regularization path

Description

Extracts a specific solution in the regularization path

Usage

## S3 method for class 'srm'
coef(object, lambda = NULL, gamma = NULL, regulators_num = NULL, ...)

## S3 method for class 'srm_cv'
coef(object, lambda = NULL, gamma = NULL, ...)

Arguments

object

The output of fit_sparse_regression.

lambda

The value of lambda at which to extract the solution.

gamma

The value of gamma at which to extract the solution.

regulators_num

The number of non-zore coefficients, this value will affect the final performance. The maximum support size at which to terminate the regularization path. Recommend setting this to a small fraction of min(n,p) (e.g. 0.05 * min(n,p)) as L0 regularization typically selects a small portion of non-zeros.

...

Other parameters

Value

Return the specific solution


inferCSN documentation built on Sept. 11, 2024, 9:32 p.m.