首页 > 其他 > 详细

训练神经网络的一般步骤

时间:2018-10-29 22:44:28      阅读:214      评论:0      收藏:0      [点我收藏+]

Training a Neural Network

  • Randomly initialize the weights
  • Implement forward propagation to get hΘ?(x(i)) for any x(i)
  • Implement the cost function
  • Implement backpropagation to compute partial derivatives
  • Use gradient checking to confirm that your backpropagation works. Then disable gradient checking.
  • Use gradient descent or a built-in optimization function to minimize the cost function with the weights in theta.

训练一个神经网络

  • 随机初始化权重
  • 运用前向传播得到所有样本x(i)的hΘ?(x(i))
  • 计算损失函数
  • 运用反向传播计算偏导
  • 运用梯度检查确保梯度下降算法的正确运行,然后关闭梯度检查
  • 运用梯度下降算法或者别的优化算法优化权重以最小化损失函数

 

训练神经网络的一般步骤

原文:https://www.cnblogs.com/qkloveslife/p/9873681.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!