Reputation: 1434
I have a question on backpropagation algorithm which is used in Deep Learning.
How should I update the weights when we have n training samples?
Please guide me what is the rational procedure.
Thanks, Afshin
Upvotes: 3
Views: 246
Reputation: 4275
Both approaches are correct. They are respectively called "online" and "offline" learning.
Online learningOnline machine learning is used in the case where the data becomes available in a sequential fashion (excerpt of the definition on Wikipedia).
Offline learningOffline or "batch" learning may be used when one has access to the entire training dataset at once. An advantage of using batch learning is the improved immunity to local optima, but this comes at the cost of increased cost of training the net (the network often requires additional backpropagation iterations).
Upvotes: 4