BaseModel
Methods and Attributes¶
              Bases: ABC
Base class for models.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| energy_function | EnergyFunction | Energy function to sample from. | required | 
| sampler | BaseSampler | Sampler to use for sampling. | required | 
Methods:
| Name | Description | 
|---|---|
| energy | Compute the energy of the input. | 
| sample | Sample from the model. | 
| train_step | Perform a single training step |