View source: R/gradient_descent.R
Fits linear model by gradient descent
1 | gradient_descent(form, dat, gamma = 0.1, tol = 1e-05, iter = 1e+05)
|
form |
the input formula object |
dat |
the input dataframe |
gamma |
the learning rate |
tol |
the numerical tolerance |
iter |
the maximum iterations |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.