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.

How it connects

← Back to the whole map