sc_reconstruction.utils.inst_model_from_checkpoint#
- sc_reconstruction.utils.inst_model_from_checkpoint(model_name, checkpoint_file, checkpoint_path, additional_params=None)[source]#
Load a model from a checkpoint file, inferring the architecture from the filename
- Args:
model_name: Name of the model (e.g., ‘scVI’, ‘PCA’) checkpoint_path: Path to the checkpoint file additional_params: Additional parameters to pass to the model constructor
- Returns:
Loaded model