Description Usage Arguments Value Examples
View source: R/lasso_py_hw4c.R
This function fits linear models with the LASSO regression regularization (using the l1 norm). This method is used for subset selection. Language is in Python 3.
1 | lasso_py_hw4c(y, X, lambda_val)
|
y |
target/response variable matrix |
X |
independent variables matrix (contrasts should be taken care of here) - orthonormal matrix recommended |
lambda_val |
the lambda value (regularization parameter) |
the best-fit coefficients with LASSO regularization
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.