empulse.optimizers#
The optimizers module contains the optimizers used to
optimize models in the empulse.models module.
Optimizers#
Abstract base class for all logit model optimizers. |
|
Adam optimizer with optional AMSGrad correction. |
|
Real-coded Genetic Algorithm (RGA) optimizer for logit models. |
|
Limited-memory BFGS with box constraints (L-BFGS-B) via |
|
Real-coded Lamarckian Memetic Algorithm optimizer for logit models. |
|
RMSProp optimizer. |
|
General-purpose wrapper around |
|
Stochastic Gradient Descent with optional Nesterov momentum. |
Optimizer Components#
Used to construct optimizers in the empulse.optimizers module.
A single generation of a Real-coded Genetic Algorithm (RGA). |
|
Real-coded GA generation with Lamarckian local gradient search. |
Schedulers#
Used to schedule the learning rate or smoothing parameters during training.
Abstract base class for parameter schedules. |
|
Constant schedule – always returns value. |
|
Cosine annealing between max_value and min_value over t_max epochs. |
|
Exponential schedule: |
|
Linear interpolation from start_value to end_value over n_steps epochs. |
|
Step decay: multiply by gamma every step_size epochs. |
|
Linear warm-up for warmup_steps epochs, then delegates to after_schedule. |