View source: R/gradient_descent_outofsample.R
Fits linear model by gradient descent optimizing out of sample accuracy
1 | gradient_descent_outofsample(form, dat, gamma = 0.1, tol = 0.01, iter = 10000)
|
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.