Description Usage Arguments Examples
This function implements gradient descent GLM using both a constant adaptive step size
1 | glm_gd(X, Y, mu_fun, lr, max_n = 25, tol = 1e-10)
|
X |
a model matrix, the X variables as columns |
Y |
a factor vector, the response variable |
mu_fun |
a function depending on Xbeta, giving the mean of the link function |
lr |
the learning rate |
max_n |
max number of iterations (a positive integer) |
tol |
the difference threshold for which we will exit the algorithm for iterations less than max_n |
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.