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 avak.models.ModelFactory, given avak.models.definition.ModelDefinitionand alightning.LightningModuleclass that has been registered as a model family withmodel_family().So you will not usually need to use this function directly, and should prefer to use
vak.models.decorator.model()instead.