内置层
对于大多数任务,您可以使用内置层。如果没有您的任务所需的内置层,则可以定义您自己的自定义层。您可以定义具有可学习参数和状态参数的自定义层。定义自定义层后,您可以检查该层是否有效,是否与 GPU 兼容,以及是否输出正确定义的梯度。要查看支持的层的列表,请参阅深度学习层列表。
App
| 深度网络设计器 | 设计和可视化深度学习网络 |
函数
主题
- 长短期记忆神经网络
了解长短期记忆 (LSTM) 神经网络。
- 创建简单的深度学习神经网络以用于分类
此示例说明如何创建和训练简单的卷积神经网络来进行深度学习分类。
- 针对回归训练卷积神经网络
此示例说明如何训练卷积神经网络来预测手写数字的旋转角度。
- 深度学习层列表
探索 MATLAB® 中的所有深度学习层。
- 使用深度网络设计器构建网络
在深度网络设计器中以交互方式构建和编辑深度学习网络。
- Create and Train Network with Nested Layers
This example shows how to create and train a network with nested layers using network layers. (自 R2024a 起)
- Neural Network Weight Tying
This example shows how to create and edit neural networks that have layers that share learnable parameters. (自 R2026a 起)
- Train Neural Network with Weight Tying
This example shows how to train a neural network with weight tying by passing learnable parameters between layers. (自 R2026a 起)
- Example Deep Learning Network Architectures
This example shows how to define simple deep learning neural networks for classification and regression tasks.
- Choose an AI Model
Explore options for choosing an AI model.
- 从深度网络设计器生成 MATLAB 代码
生成 MATLAB 代码,以便在深度网络设计器中重新创建设计网络。
- 多输入和多输出网络
了解如何定义和训练具有多个输入或多个输出的深度学习网络。










