Description Usage Arguments Value Author(s)
View source: R/gradient_function.R
Mini_batch gradient descent computes the gradient using a batch size of the dataset
1 2 3 4 5 6 7 8 9 10 | gradient_mini_batch(
df,
var_X,
var_y,
nb_batch,
learning_rate,
max_iter,
graph,
epsilon
)
|
df |
dataset |
var_X |
names of the X columns |
var_y |
names of the Y columns |
nb_batch |
batch size |
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.