uvex_transients.models.core.parameters.Parameter.sample_latent_variable#
- Parameter.sample_latent_variable(size: int = 1, *, rng: RNGInput = None) FloatArray[source]#
Draw
sizesamples of the latent variable \(z\).If
is_fixed, every draw is the (transformed) fixed value; otherwise this delegates toprior.- Parameters:
size (
int, optional) – Number of samples to draw. The default is1.rng (
numpy.random.Generator,int, orNone, optional) – Random-number source. Unused whenis_fixed.
- Returns:
Latent-space samples with shape
(size,).- Return type: