Description Usage Arguments Examples
View source: R/lm_graddescent_xval.R
This function creates a linear model using gradient descent, adjusting the penalty for out-of-sample accuracy.
1 | lm_graddescent_xval(f, d, gamma, n, flds)
|
f |
a formula the data will be fit too |
d |
the data to be fit (a data frame) |
gamma |
the step size (a positive number) |
n |
number of iterations (a positive integer) |
flds |
a list of folds |
1 2 3 4 | data("iris")
irisform <- Sepal.Length ~.
irisfold <- rsample::vfold_cv(iris)
lm_graddescent_xval(irisform, iris, 0.0001, 100000, irisfold)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.