.. _nnodely-training: Training ======== Training in **nnodely** aims to identify model parameters by minimizing the discrepancy between predicted and target outputs using user-defined loss functions and evaluation metrics. The training process is managed through the :doc:`Training module `, which provides utilities such as :func:`addMinimize `, :func:`removeMinimize `, and :func:`trainModel `. Training status and diagnostics can be accessed through :func:`getTrainingInfo `. The framework supports standard gradient-based optimization methods and multi-objective loss functions through optional weighting. Optimization algorithms are provided by the :doc:`Optimizer module `, including :class:`SGD ` and :class:`Adam `. Regularization mechanisms such as **dropout** and **early stopping** are also available to improve generalization and prevent overfitting. Early stopping strategies are implemented in the :doc:`Early Stopping module ` through functions such as :func:`early_stop_patience `, :func:`mean_stopping `, :func:`standard_early_stopping `, and :func:`select_best_model `. To handle temporal heterogeneity across samples, training uses a dedicated batching strategy that preserves temporal coherence within each batch. This ensures that time-dependent relationships are correctly maintained during optimization. .. .. rubric:: Key Features .. - Support for custom loss functions and evaluation metrics via .. :func:`addMinimize ` and :func:`removeMinimize ` .. - Gradient-based optimization with :class:`SGD ` and :class:`Adam ` .. - Regularization through early stopping methods .. - Temporally coherent batching strategies .. - Dedicated support for feed-forward and recurrent architectures .. - Access to training diagnostics through :func:`getTrainingInfo ` .. toctree:: :maxdepth: 1 trainer_module optimizer_module earlystopping_module