vak.models.registry.register_model

vak.models.registry.register_model(model: ModelFactory) ModelFactory[source]

Function that registers a model in the model registry.

This function is called by vak.models.decorator.model(), that creates an instance of a vak.models.ModelFactory, given a vak.models.definition.ModelDefinition and a lightning.LightningModule class that has been registered as a model family with model_family().

So you will not usually need to use this function directly, and should prefer to use vak.models.decorator.model() instead.