|
My Project
|
Base class for Stochastic Minimizers. More...
#include <stochastic_minimizer.hpp>


Public Member Functions | |
| virtual | ~StochasticMinimizer ()=default |
| void | setMaxIterations (int max_iters) |
| Sets the maximum number of iterations. More... | |
| void | setStepSize (double s) |
| Sets the step size (learning rate). More... | |
| void | setTolerance (double tol) |
| Sets the tolerance for convergence (full gradient norm). More... | |
| void | setRecorder (::IterationRecorder< CpuBackend > *recorder) |
| Attach a recorder for loss/grad history. More... | |
Protected Attributes | |
| unsigned int | _max_iters = 1000 |
| unsigned int | _iters = 0 |
| double | _tol = 1e-4 |
| double | step_size = 0.01 |
| ::IterationRecorder< CpuBackend > * | recorder_ = nullptr |
| Optional recorder for diagnostics. More... | |
Base class for Stochastic Minimizers.
Provides common storage for stochastic optimization parameters like step size and iteration limits.
|
virtualdefault |
|
inline |
Sets the maximum number of iterations.
| max_iters | Limit on iterations. |
|
inline |
Attach a recorder for loss/grad history.
| recorder | Recorder instance (may be null). |
|
inline |
Sets the step size (learning rate).
| s | Step size. |
|
inline |
Sets the tolerance for convergence (full gradient norm).
| tol | Tolerance value. |
|
protected |
|
protected |
|
protected |
|
protected |
Optional recorder for diagnostics.
|
protected |