DirectPosteriorParameters#
- class DirectPosteriorParameters(max_sampling_batch_size=10000, enable_transform=True)[source]#
Bases:
PosteriorParametersParameters for initializing DirectPosterior.
- Fields:
- max_sampling_batch_size: Batchsize of samples being drawn from
the proposal at every iteration.
- enable_transform: Whether to transform parameters to unconstrained space
during MAP optimization. When False, an identity transform will be returned for theta_transform.
- with_param(**kwargs)#
Create a new instance of the class with updated field values.
Only allows updates to fields defined in the dataclass. Raises an error if any unknown or invalid field names are passed.
- Parameters:
**kwargs – Field-value pairs to override in the new instance.
- Returns:
A new instance of the same class with updated values.
- Raises:
ValueError – If any of the provided keys are not valid dataclass fields.