ksuit.initializers.base.initializer_base ======================================== .. py:module:: ksuit.initializers.base.initializer_base Classes ------- .. autoapisummary:: ksuit.initializers.base.initializer_base.InitializerBase Module Contents --------------- .. py:class:: InitializerBase(path_provider) Bases: :py:obj:`abc.ABC` Helper class that provides a standard way to create an ABC using inheritance. Base class for model initializers. :param path_provider: PathProvider instance to access paths to load models from. .. py:attribute:: logger .. py:attribute:: path_provider .. py:method:: init_weights(model) :abstractmethod: Initialize the model weights from the checkpoint. :param model: the model to load the weights into. .. py:method:: init_optimizer(model) :abstractmethod: Initialize the optimizer for the model. :param model: a model to initialize the optimizer for. Assumes the model has an attribute optim.