Afshin Oroojlooy
Afshin Oroojlooy

Reputation: 1434

How Backpropagation works?

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

Answers (1)

jorgenkg
jorgenkg

Reputation: 4275

They are both rational options.

Both approaches are correct. They are respectively called "online" and "offline" learning.

Online learning

Online machine learning is used in the case where the data becomes available in a sequential fashion (excerpt of the definition on Wikipedia).

Offline learning

Offline 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

Related Questions