sccross.models.layers.NBDataEncoder.forward¶
-
NBDataEncoder.forward(x, xalt, lazy_normalizer=True)[source]¶ Encode data to sample latent distribution
- Parameters
- Return type
- Returns
u – Sample latent distribution
normalizer – Data normalizer
Note
Normalization is always computed on x. If xalt is empty, the normalized x will be used as input to the encoder neural network, otherwise xalt is used instead.