scvi.dataloaders.MappedCollectionDataModule#
- class scvi.dataloaders.MappedCollectionDataModule(collection, batch_key=None, label_key=None, unlabeled_category='Unknown', sample_key=None, batch_size=128, collection_val=None, accelerator='auto', device='auto', shuffle=True, model_name='SCVI', categorical_covariate_keys=None, continuous_covariate_keys=None, **kwargs)[source]#
Bases:
LightningDataModule
Attributes table#
String assigned to unlabeled cells. |
|
Methods table#
|
|
|
Dataloader for inference with on_before_batch_transfer applied. |
|
Convert a lamindb MappedCollection batch to the dictionary scvi-tools expects. |
Create the train data loader. |
|
Create the validation data loader. |
Attributes#
Methods#
- MappedCollectionDataModule.inference_dataloader(shuffle=False, batch_size=4096, indices=None, parallel_cpu_count=None)[source]#
Dataloader for inference with on_before_batch_transfer applied.
- MappedCollectionDataModule.on_before_batch_transfer(batch, dataloader_idx)[source]#
Convert a lamindb MappedCollection batch to the dictionary scvi-tools expects.