ray.data.Dataset.iterator#

Dataset.iterator() DataIterator[source]#

Return a DataIterator over this dataset.

Don’t call this method directly. Use it internally.

Note

Calling any of the consumption methods on the returned DataIterator will trigger execution of the lazy transformations performed on this dataset.

Returns:

A DataIterator over this dataset.