coef.srm | R Documentation |
Extracts a specific solution in the regularization path
## 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, ...)
object |
The output of |
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 |
Return the specific solution
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.