Description Usage Arguments Value
a Solver for the ElasticNet problem
1 | elasticNet_solve(y, X, lambda = 0.01, alpha = 0.5, epsilon = 1)
|
y |
a nx1 label vector |
X |
the design matrix |
lambda |
the weight of the overall penalty term |
alpha |
the relative weigth given to the L1 (Lasso) penalty |
epsilon |
the smallest change in penalised RSS that defines convergence |
a px1 vector of betas
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.