Description Usage Arguments Value Examples
A first-order solution for the GLM maximum likelihood problem using gradient information,including both a constant step size along with an adaptive one.
1 2 3 4 5 6 7 8 9 10 | glm_gradient(
X,
y,
family,
step = c("constant", "momentum"),
lambda = 1e-05,
gamma = 0.8,
maxiter = 1000,
tol = 1e-12
)
|
X |
The input design matrix. |
y |
The input response vector. |
family |
The error distribution and link function. |
step |
An option to choose whether use a constant step size or an adaptive one,momentum. |
lambda |
A number indicating the learning rate. |
gamma |
A fraction indicating the momentum step size. |
maxiter |
A number indicating the maximum number iterations. |
tol |
A number indicating the covergence of the algorithm. |
A list of estimated coefficients.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.