Backpropagation and batch training

那年仲夏 提交于 2019-12-24 06:38:04

问题


Backpropagation calculates dW (weight delta) per weight per pattern, so it's straightforward how to modify weights when doing stochastic training. How do I use it for batch training, though? Simply accumluate dW over the entire training set and then apply the modfication, or is there more to it?


回答1:


Yes, just accumluate dW over the entire training set. At least that is how I coded it back in grad school...




回答2:


You can do a lot with the different gradients from the different samples. That includes higher order information (approximate 2nd derivative) or conjugate gradient or natural gradient or ... :)



来源:https://stackoverflow.com/questions/2139940/backpropagation-and-batch-training

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!