Extracts a specific solution in the regularization path

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

# S3 method for class 'SRM_fit_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-zeros each solution extracted will contain.

...

Other parameters

Value

Return the specific solution