scvi.model.SCANVI.from_scvi_model

classmethod SCANVI.from_scvi_model(scvi_model, unlabeled_category, adata=None, **scanvi_kwargs)[source]

Initialize scanVI model with weights from pretrained scVI model.

Parameters
scvi_model : SCVISCVI

Pretrained scvi model

unlabeled_category : strstr

Value used for unlabeled cells in labels_key used to setup AnnData with scvi.

adata : AnnData | NoneOptional[AnnData] (default: None)

AnnData object that has been registered via setup_anndata().

scanvi_kwargs

kwargs for scanVI model