lenskit.data.BatchedRange#

class lenskit.data.BatchedRange#

Iterator over a range by batches.

The length of this collection is the number of batches, and iterating over it yields batch extents.

n: int#

The total number of items.

size: int#

The batch size.

property batch_count: int#
Return type:

int

__len__()#
Return type:

int

__iter__()#
Return type:

collections.abc.Iterator[lenskit.data.types.Extent]