GradientDescentState#
- class GradientDescentState(x, fun, jac, nfev, njev, nit, stepsize, learning_rate)[source]#
Bases:
OptimizerState
State of
GradientDescent
.Dataclass with all the information of an optimizer plus the learning_rate and the stepsize.
Attributes
- learning_rate: LearningRate#
Learning rate at the current step of the optimization process.
It behaves like a generator, (use
next(learning_rate)
to get the learning rate for the next step) but it can also return the current learning rate withlearning_rate.current
.
- x: POINT#
Current optimization parameters.