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|NoneOptional[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