Index Ai Academy
Glossary · Phase 7 · Software engineering

IterableDataset

A PyTorch dataset that yields items one at a time as a stream, for data too big or too slow to index.

Try it now

Step through: the generator is a card that remembers its paused line and its n. Its body only runs when next() or list() asks for a value, and each yield pauses it again.

Learn it properly

Iterators and generators · The iteration protocol, yield, lazy pipelines and itertools, in small memory. About 45 minutes.

Other terms from the same lesson

  • generator function: A function that uses yield to hand out values one at a time, pausing between them, instead of building a whole list.
  • iterator: An object that gives the next item each time next() is called, and is used up when it runs out.
Keep learning

More in plain English.

1286 terms in the glossary, each with the lesson that teaches it.

1286 terms

The glossary

Every word you'll meet in AI and machine learning, explained in everyday language.

Phase 7 · lesson 45 min

Iterators and generators

The iteration protocol, yield, lazy pipelines and itertools, in small memory.

Never trained an AI? Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account. Teach it to write