深度学习调整
要了解如何使用 trainingOptions
函数设置选项,请参阅设置参数并训练卷积神经网络。在确定一些合适的开始选项后,您可以使用试验管理器自动扫描超参数或尝试贝叶斯优化。
通过生成对抗示例来研究网络稳健性。然后,您可以使用快速梯度符号方法 (FGSM) 对抗训练来训练在对抗扰动下保持稳健的网络。
App
深度网络设计器 | 设计、可视化和训练深度学习网络 |
函数
trainingOptions | Options for training deep learning neural network |
trainNetwork | Train deep learning neural network |
主题
- 设置参数并训练卷积神经网络
了解如何为卷积神经网络设置训练参数。
- 使用贝叶斯优化进行深度学习
此示例说明如何将贝叶斯优化应用于深度学习并找到卷积神经网络的最优网络超参数和训练选项。
- 并行训练深度学习网络
此示例说明如何在本地计算机上运行多个深度学习试验。使用此示例作为模板,您可以修改网络层和训练选项,以满足您的具体应用需要。无论您有一个还是多个 GPU,都可以使用这种方法。如果您只有一个 GPU,网络会在后台逐个进行训练。本示例中的方法使您能够在进行深度学习试验时继续使用 MATLAB®。
- Train Network Using Custom Training Loop
This example shows how to train a network that classifies handwritten digits with a custom learning rate schedule.
- Compare Activation Layers
This example shows how to compare the accuracy of training networks with ReLU, leaky ReLU, ELU, and swish activation layers.
- Generate Experiment Using Deep Network Designer
Use Experiment Manager to tune the hyperparameters of a network trained in Deep Network Designer.
- Deep Learning Tips and Tricks
Learn how to improve the accuracy of deep learning networks.
- Train Robust Deep Learning Network with Jacobian Regularization
This example shows how to train a neural network that is robust to adversarial examples using a Jacobian regularization scheme [1].
- 指定自定义权重初始化函数
此示例说明如何为后跟泄漏 ReLU 层的卷积层创建自定义 He 权重初始化函数。
- 比较层权重初始化函数
此示例说明如何使用不同权重初始化函数来训练深度学习网络。