scpdac.models.load_classifier_checkpoints#
- scpdac.models.load_classifier_checkpoints(species, map_location='cpu')#
Load the three hierarchical-classifier checkpoints for a species.
- Parameters:
species (
str) –"human"or"mouse".map_location (
str(default:'cpu')) – Torchmap_locationfortorch.load().
- Return type:
- Returns:
Mapping
{"root", "malignant", "non_malignant"}to checkpoint dicts (each holdingstate_dict,genes,classes, …).- Raises:
FileNotFoundError – If the species directory or any of the three checkpoints is missing.