Description Usage Arguments Value Examples
The lassoglmnet function is designed to learn the graph structure by using the lasso and elastics net methods.
1 | lassoglmnet(Y0, nlambda = 10, alpha)
|
Y0 |
The data matrix for the GGM model. |
nlambda |
The number of interval used in the penalized path in lasso and elastics. It results in the number of lambda values to be used in the penalization. The default value is 10. |
alpha |
The value to be used in enet, it has values between 0 and 1. The value of 0 is corresponding to l-1 penalization, and 1 is corresponding to the l-2 regularization (Ridge regression). The other values between 0 and 1 will result in a combination of l1-l2 norm regularization named as elastic net. |
Return the regression coefficients of glmnet 'coef_glmnet', residuals from the glmnet 'resid_glmnet' and lambda.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.