sc_reconstruction.models.ReconNLSCVI#

class sc_reconstruction.models.ReconNLSCVI(*args, **kwargs)[source]#

Bases: SCVI, BaseReconstructionModel

A structured SCVI model for reconstruction that adheres to the base class interface.

Parameters:
  • adata (AnnData | None)

  • registry (Dict | None)

__init__(adata=None, registry=None, **kwargs)[source]#
Parameters:
  • adata (AnnData | None)

  • registry (Dict | None)

Methods

__init__([adata, registry])

get_latent_representation(X, **inference_kwargs)

load(path[, map_location])

Load the model

predict(X[, inference_kwargs, pred_type])

Parameters: X: np.ndarray - Raw input data.

prepare(adata, **kwargs)

Register adata with the SCVI data manager and cache the reference.

save(path, **kwargs)

Save the model module to path.

train(**train_kwargs)

Drop the unused save_path kwarg and delegate to SCVI.train.