vak.models.decoratorΒΆ

Decorator that makes a vak.models.ModelFactory, given a definition of the model, and a lightning.LightningModule that represents a family of models that the new model belongs to.

The function returns a new instance of vak.models.ModelFactory, that can create new instances of the model with its from_config() and from_instances() methods.

Functions

model(family)

Decorator that makes a vak.models.ModelFactory, given a definition of the model, and a lightning.LightningModule that represents a family of models that the new model belongs to.

Exceptions

ModelDefinitionValidationError

Exception raised when validating a model definition fails.