Map 1 · Building and training a network · Step 2
Prepare the data
How do I split, scale and encode the data?
Key formula
Statistics from the training set only.
Fact or figure
Unscaled inputs in the thousands push sigmoid units into saturation, where and learning stalls.
Skip this step and…
Statistics computed on all the data, or the same object in train and test, leak information and inflate the test score.
Digits example
Divide pixels by 255; keep 60,000 images for training (with some held out for validation) and 10,000 for the final test.
Learn it
Taught in Section 8 (Generalisation and Data) of the course. The map follows the deep learning workflow, the order you build a model in; the course teaches in the order that is easiest to learn, so the numbers can jump.
- 8.2 Training, Validation and Test SetsWhat each data split is for, typical split sizes, the forms of data leakage that quietly ruin an evaluation, and k-fold cross-validation when data is scarce.
- 8.4 Preparing the DataScaling features, handling missing values and categories, checking labels and dealing with unbalanced classes. Each with the reason it matters for a neural network.
How it connects
Feeds into · Step 8
Evaluate honestlyThe held-out sets are what evaluation measures
Is it learning, or memorising?
Feeds into · Step 4
Choose the activationsBadly scaled inputs saturate sigmoid units
Which non-linearity in hidden layers, and which at the output?
Builds on · Step 9
RegulariseData augmentation creates new training examples from the data you already have
How do I close the gap between training and validation?