LESSON 6.05 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Datasets and DataLoaders
Watch a DataLoader shuffle, batch and load samples while the training loop runs.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 6.05 · DATALOADER BAY22 SAMPLES · LOADS 134 MS IN ALL
01
Stage 1 of 6 · The dataset
A Dataset returns one sample per index. Each bar shows the time to read and decode that sample.
Explain it simply
Each card is one sample. A square is class 0 and a circle is class 1. The samples are stored class by class, like one folder of photos per class. The bar under a card is its load time, and three large files take 18 milliseconds each.
22 sample cards, 0 to 21. Samples 0 to 10 are class 0 and 11 to 21 are class 1. Load times add up to 134 ms.
samples, loadstrain steps, requestsloop waits, one-class batchesepoch time
Toy: 22 samples, batch size 3, times in ms
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Index i returns one sample and takes its load time.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.