.. _f-sgdlearningrate: module ``training.sgd_learning_rate`` ===================================== .. inheritance-diagram:: onnxcustom.training.sgd_learning_rate Short summary +++++++++++++ module ``onnxcustom.training.sgd_learning_rate`` Helper for :epkg:`onnxruntime-training`. :githublink:`%|py|6` Classes +++++++ +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | class | truncated documentation | +==================================================================================================+=====================================================================================================================+ | :class:`BaseLearningRate ` | Class handling the learning rate update after every iteration of a gradient. Two methods need to be overwritten ... | +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :class:`LearningRateSGD ` | Implements the learning the same way as :class:`sklearn.linear_model.SGDRegressor`. | +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :class:`LearningRateSGDNesterov ` | Implements the learning the same way as :class:`sklearn.linear_model.SGDRegressor`. | +--------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ Properties ++++++++++ +-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ | property | truncated documentation | +===============================================================================================+=========================================================================+ | :meth:`needs_grad ` | Returns the True if the gradient update needs to retain past gradients. | +-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ | :meth:`needs_grad ` | Returns the True if the gradient update needs to retain past gradients. | +-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ | :meth:`needs_grad ` | Returns the True if the gradient update needs to retain past gradients. | +-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ | :meth:`value ` | Returns the current learning rate. | +-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ | :meth:`value ` | Returns the current learning rate. | +-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ | :meth:`value ` | Returns the current learning rate. | +-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ Static Methods ++++++++++++++ +---------------------------------------------------------------------------------------+-----------------------------------------------------------+ | staticmethod | truncated documentation | +=======================================================================================+===========================================================+ | :meth:`select ` | Returns an instance of a given initialized with *kwargs*. | +---------------------------------------------------------------------------------------+-----------------------------------------------------------+ | :meth:`select ` | Returns an instance of a given initialized with *kwargs*. | +---------------------------------------------------------------------------------------+-----------------------------------------------------------+ | :meth:`select ` | Returns an instance of a given initialized with *kwargs*. | +---------------------------------------------------------------------------------------+-----------------------------------------------------------+ Methods +++++++ +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | method | truncated documentation | +===================================================================================================================+==================================================================+ | :py:meth:`__init__ ` | | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :py:meth:`__repr_extended__ ` | | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :py:meth:`__repr_extended__ ` | | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :py:meth:`__repr_extended__ ` | | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :py:meth:`_call_iobinding ` | | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :py:meth:`_call_iobinding ` | | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :py:meth:`_call_iobinding ` | | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :meth:`build_onnx_function ` | | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :meth:`build_onnx_function ` | | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :meth:`init_learning_rate ` | Initializes the learning rate at the beginning of the training. | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :meth:`init_learning_rate ` | Updates the learning rate at the end of an iteration. | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :meth:`init_learning_rate ` | Updates the learning rate at the end of an iteration. | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :meth:`loop ` | Loops over learning rate values, *n* to be precise. | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :meth:`loop ` | Loops over learning rate values, *n* to be precise. | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :meth:`loop ` | Loops over learning rate values, *n* to be precise. | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :meth:`update_learning_rate ` | Updates the learning rate at the end of an iteration. | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :meth:`update_learning_rate ` | Updates the learning rate at the end of an iteration. | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :meth:`update_learning_rate ` | Updates the learning rate at the end of an iteration. | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :meth:`update_weights ` | Updates weights based on the algorithm this class is setting up. | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :meth:`update_weights ` | | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :meth:`update_weights ` | | +-------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: onnxcustom.training.sgd_learning_rate :members: :special-members: __init__ :show-inheritance: