- 深度学习经典案例解析:基于MATLAB
- 赵小川
- 152字
- 2021-10-27 15:43:58
3.5 例程实现与解析
满足3.2节需求的程序代码如例程3-1所示,其运行效果如图3-5所示。
例程3-1:构建并训练一个用于预测的卷积神经网络。



例程3-1的训练过程如图3-5所示。由于在配置选项中,将'Verbose'设置为了true,所以该网络的训练过程也在命令窗口中显示,如图3-6所示。

图3-5 例程3-1的运行效果的可视化线型图


图3-6 例程3-1的运行效果在命令窗口的显示
满足3.2节需求的程序代码如例程3-1所示,其运行效果如图3-5所示。
例程3-1:构建并训练一个用于预测的卷积神经网络。
例程3-1的训练过程如图3-5所示。由于在配置选项中,将'Verbose'设置为了true,所以该网络的训练过程也在命令窗口中显示,如图3-6所示。
图3-5 例程3-1的运行效果的可视化线型图
图3-6 例程3-1的运行效果在命令窗口的显示