Loading...
Searching...
No Matches
quasi_newton_method.h
Go to the documentation of this file.
42 void set_minimum_loss_decrease(const float new_minimum_loss_decrease) { minimum_loss_decrease = new_minimum_loss_decrease; }
Definition json.h:72
Definition json.h:85
Unified loss container supporting MSE, cross-entropy, Minkowski, weighted, and regularized variants.
Definition loss.h:24
Optimizer(Loss *=nullptr)
Constructs an optimizer optionally bound to a Loss instance.
TrainingResults train() override
Runs the quasi-Newton training loop and returns the recorded error history.
DataSlot
Slot indices into the optimizer scratch buffer (BFGS state).
Definition quasi_newton_method.h:26
@ ParameterDifferences
Definition quasi_newton_method.h:28
@ GradientDifference
Definition quasi_newton_method.h:31
@ OldInverseHessianDotGradientDifference
Definition quasi_newton_method.h:32
void to_JSON(JsonWriter &) const override
Serializes hyperparameters to JSON.
QuasiNewtonMethod(Loss *=nullptr)
Constructs the quasi-Newton optimizer optionally bound to a Loss instance.
void set_minimum_loss_decrease(const float new_minimum_loss_decrease)
Definition quasi_newton_method.h:42
void update_parameters(const Batch &, ForwardPropagation &, BackPropagation &, OptimizerData &)
Applies one BFGS update: line search along the search direction, then refreshes the inverse Hessian.
void from_JSON(const JsonDocument &) override
Restores hyperparameters from a JSON document.
void set_default()
Resets all hyperparameters and stopping criteria to library defaults.
Definition adaptive_moment_estimation.h:14
Workspace holding parameter gradients and per-layer deltas during a backward pass.
Definition back_propagation.h:21
Minibatch container holding pinned host/device buffers and views into a Dataset.
Definition batch.h:19
Workspace holding the activations of every layer during a forward pass.
Definition forward_propagation.h:20
Per-optimizer scratch state (moments, directions, iteration counter) backing the update step.
Definition optimizer.h:182
History and final metrics produced by a training run.
Definition optimizer.h:204