lenskit.data.BatchedRange ========================= .. py:class:: lenskit.data.BatchedRange :canonical: lenskit.data._batches.BatchedRange Iterator over a range by batches. The length of this collection is the number of batches, and iterating over it yields batch extents. .. py:attribute:: n :type: int The total number of items. .. py:attribute:: size :type: int The batch size. .. py:property:: batch_count :type: int .. py:method:: __len__() .. py:method:: __iter__()