Custom Training Loops
If the trainingOptions
function does
not provide the training options that you need for your task, or you have a
loss function that the trainnet
function does not support, then you can define a
custom training loop. For models that cannot be specified as networks of
layers, you can define the model as a function. To learn more, see Define Custom Training Loops, Loss Functions, and Networks.
Functions
Topics
- Train Network Using Custom Training Loop
This example shows how to train a network that classifies handwritten digits with a custom learning rate schedule.
- Train Sequence Classification Network Using Custom Training Loop
This example shows how to train a network that classifies sequences with a custom learning rate schedule.
- Define Custom Training Loops, Loss Functions, and Networks
Learn how to define and customize deep learning training loops, loss functions, and models.
- Specify Training Options in Custom Training Loop
Learn how to specify common training options in a custom training loop.
- Monitor Custom Training Loop Progress
Track and plot custom training loop progress.
- Detect Issues During Deep Neural Network Training
This example shows how to automatically detect issues while training a deep neural network.
- Speed Up Deep Neural Network Training
Learn how to accelerate deep neural network training.