[docs]classRecipeConfigBase(C.Config,ABC):""" Base configuration for recipes. """
[docs]@abstractmethoddefcreate_lightning_callback(self)->Callback|None:""" Creates the PyTorch Lightning callback for this recipe, or returns `None` if no callback is needed. """...
[docs]@classmethoddefensure_dependencies(cls):""" Ensure that all dependencies are installed. This method should raise an exception if any dependencies are missing, with a message indicating which dependencies are missing and how to install them. """return