scvi.external.gimvi.JVAE.sample_from_posterior_l

JVAE.sample_from_posterior_l(x, mode=None, deterministic=False)[source]

Sample the tensor of library sizes from the posterior.

Parameters
x : TensorTensor

tensor of values with shape (batch_size, n_input) or (batch_size, n_input_fish) depending on the mode

mode : int | NoneOptional[int] (default: None)

head id to use in the encoder

deterministic : boolbool (default: False)

bool - whether to sample or not

Return type

TensorTensor

Returns

type tensor of shape (batch_size, 1)