Gradient descent optimizer
OptimizerGD.Rd
This class defines gradient descent
Super classes
vistool::Optimizer
-> vistool::OptimizerMomentum
-> OptimizerGD
Methods
Method new()
Creates a new instance of this [R6][R6::R6Class] class.
Usage
OptimizerGD$new(
objective,
x_start,
lr = 0.01,
id = "Gradient Descent",
print_trace = TRUE
)
Arguments
objective
(`Objective`) The objective to optimize.
x_start
(`numeric()`) Start value of the optimization. Note, after the first call of `$optimize()` the last value is used to continue optimization. Get this value with `$x`.
lr
(`numeric(1)`) Step size with which the update is multiplied.
id
(`character(1)`) Id of the object.
print_trace
(`logical(1)`) Indicator whether to print the status of `$optimize()`.