Description Usage Arguments Value Author(s)
View source: R/gradient_function.R
Batch gradient descent computes the gradient using the whole dataset
1 2 3 4 5 6 7 8 9 | batch_gradient_descent(
df,
var_X,
var_y,
learning_rate,
max_iter,
graph,
epsilon
)
|
df |
dataset |
var_X |
names of the X columns |
var_y |
names of the Y columns |
learning_rate |
the learning rate |
max_iter |
number of iterations |
graph |
TRUE if you want to plot the cost list while the gradient descent is running. |
epsilon |
Tolerance's threshold of the cost list convergence. |
list of theta and the cost list
Frintz Elisa, NDiaye Deffa, Rives Alexandre
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.