mypackage.MyPyroModel.get_latent¶
-
MyPyroModel.
get_latent
(adata=None, indices=None, batch_size=None)[source]¶ Return the latent representation for each cell.
This is denoted as \(z_n\) in our manuscripts. :type adata:
AnnData
|None
Optional
[AnnData
] (default:None
) :param adata: AnnData object with equivalent structure to initial AnnData. If None, defaults to theAnnData object used to initialize the model.
- Parameters
- Returns
-latent_representation (
ndarray
) Low-dimensional representation for each cell