uvex_transients.models.core.parameters.Parameter.sample_latent_variable#

Parameter.sample_latent_variable(size: int = 1, *, rng: RNGInput = None) → FloatArray[source]#

Draw size samples of the latent variable \(z\).

If is_fixed, every draw is the (transformed) fixed value; otherwise this delegates to prior.

Parameters:
Returns:

Latent-space samples with shape (size,).

Return type:

numpy.ndarray