Distribution
lerax.distribution.AbstractDistribution
Bases:
Base class for all distributions in Lerax.
log_prob
abstractmethod
Compute the log probability of a sample.
prob
abstractmethod
Compute the probability of a sample.
lerax.distribution.AbstractMaskableDistribution
Bases:
Base class for all maskable distributions in Lerax.
Maskable distributions allow masking of elements in the distribution.
Attributes:
| Name | Type | Description |
|---|---|---|
|
The underlying distreqx distribution. |
mask
abstractmethod
Return a masked version of the distribution.
A masked distribution only considers the elements where the mask is True.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mask
|
|
A mask indicating which elements to consider. |
required |
Returns:
| Type | Description |
|---|---|
|
A new masked distribution. |
lerax.distribution.AbstractTransformedDistribution
Bases:
Base class for all transformed distributions in Lerax.
Transformed distributions apply a bijective transformation to a base distribution.
Attributes:
| Name | Type | Description |
|---|---|---|
|
|
The underlying distreqx transformed distribution. |
|
|
The bijective transformation applied to the base distribution. |