peal.generators.interfaces.Generator¶
- class peal.generators.interfaces.Generator[source]¶
-
Base class of every PEAL generator.
A
torch.nn.Modulethat a concrete generator subclasses to provide the two operations the library needs from any generative model: drawing samples and fitting itself to a dataset. Both raiseNotImplementedErrorhere, so a subclass only overrides what it actually supports.Methods
This function samples a batch of data samples from the generator.
This function trains the generator.