liveBook · Manning

Training dataset

As explained in Deep Learning with JAX

The dataset used to compute gradients and update model parameters during training.

A training dataset supplies the examples and correct answers used to teach a model. During training, the model computes loss and gradients from the entire dataset or from a batch, then updates its parameters to improve predictions. section 2.1 section 2.6

Keep the dataset’s role distinct from other dataset splits:

  • Training data provides the supervision signal, such as a class label for each example. section 2.1
  • A test set evaluates the final model on examples it did not see during training. section 2.1
  • A validation set can help tune hyperparameters and choose among training settings. section 2.1
  • Mini-batch training repeatedly computes gradients from some batch and moves weights opposite the gradient. section 2.6

Recognizing handwritten digits

For digit classification, the training dataset contains images labeled with numbers from 0 through 9. The labels tell the model which prediction is correct; a separate test set checks how it handles unseen images. section 2.1

Visualizing gradient descent steps along the loss landscape

Follow the gradient-descent visualization to see how batches from the training dataset drive successive steps across a loss landscape. section 2.6

How Deep Learning with JAX covers it

How deep it goes
Explains labels, dataset splits, batches, gradients, and stopping criteria, but defers detailed framework comparisons.
Examples
Uses labeled handwritten-digit images, unseen test images, and batches processed during gradient descent.
What it assumes
Assumes labeled examples and neural networks, while introducing supervised-learning dataset roles from classification practice.
What you can do after
Apply it via mini-batch gradient descent to calculate loss gradients and update neural-network weights.
How it connects
Connects training datasets to supervised learning, classification, regression, validation sets, test sets, loss functions, and gradient descent.

Also explained in

Compare how 36 books explain training dataset →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Deep Learning with JAX. The section links point to the parts of the book it draws on.