View source: R/GLMgradientMomentum.R
Fits generalized linear model by gradient descent, maximizing log-likelihood
1 2 3 4 5 6 7 8 9 10 | GLMgradientMomentum(
X,
y,
mu_fun,
T_fun,
lrate = 0.01,
mom = 0.9,
maxiter = 10000,
tol = 1e-05
)
|
X |
the design matrix |
y |
the response variable |
mu_fun |
function from eta to the expected value |
T_fun |
the sufficient statistic as a function of y |
lrate |
the learning rate |
mom |
the momentum parameter |
maxiter |
the maximum iteration number |
tol |
the numerical tolerance |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.