I don't know how to update weights in Neural Network back-propagation. I train 18 tuples data. When should update the weight? After all tuples are calculated or one tuple is calculated? Please, help me. Thank in advance.
Asked
Active
Viewed 433 times
-1
-
How is this related to C#? – ZwoRmi Jan 04 '16 at 09:57
-
I develop Neural Network with c#. – jkljikjp Jan 11 '16 at 07:56
1 Answers
0
It depends. There are two approaches to learn weights in mathematical models (including neural networks) with differentiable [empirical] cost and internal functions. Both methods rely on computing gradients of the cost function with respect to the weights. The first method is known as full batch and the second mini-batch or stochastic gradient descent (SGD). However, for both methods one can take the derivative of the cost function single example (in your case tuple) with respect to a one weight only and update that weight, but this is not recommended as the weight update process can be done in parallel. So my suggestion is to use SGD and update the weights simultaneously.
Sources

Amir
- 10,600
- 9
- 48
- 75