Optimizer Module
The optimizer class orchestrates the complete training loop for one model
across all k-folds. It delegates data loading to dataloader, metric
capture to metrics, and loss computation to the per-feature lossfx
objects embedded in model_template.
Class: optimizer
Header: <generators/optimizer.h>
Inheritance: tools, notification
Public Fields
Field |
Type |
Description |
|---|---|---|
|
|
Framework training settings (epochs, kfolds, batch-size, threads, …). |
|
|
Maps fold index → cloned model instance. |
|
|
Maps model-name → training report struct. |
|
|
Pointer to the metrics engine (not owned). |
|
|
Pointer to the data loader (not owned). |
Public Methods
Signature |
Description |
|---|---|
|
Sets the |
|
Clones the model for each k-fold and initialises optimisers and schedulers from models. |
|
Runs one full training epoch for fold k. |
|
Runs one full validation epoch for fold k. |
|
Runs one full evaluation (test-set) pass for fold k. |
|
Executes all epochs (train + validate + evaluate) for fold k. |