annbatch.Loader.__iter__#
- Loader.__iter__()#
Iterate over the on-disk datasets.
Data is fetched from
Non-disk anndata objects, returningNblocks which are then either concatenated immediately and then yieled/shuffled, or subsetted to shuffled subsets and then concatenated/yielded. Seeconcat_strategyinitialization argument for more information.- Yields:
A batch of data along with its obs and index (both optional).
- Return type:
Iterator[LoaderOutput[csr_matrix|ndarray|csr_matrix|ndarray|Tensor]]