Why does training my network in batches give different results than training in a single step?

2 views (last 30 days)
I would like to know why training my network in batches gives different results than training in a single step.
If I train my Neural Netwok 10 times for 10 epochs, I get a different result than if I had trained it once for a hundred epochs.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
When training a neural network, each input vector is presented to the network at least once. Presenting all vectors once is called an epoch.
Most of the training algorithms have parameters that are adjusted adaptively during training. When you stop and restart training, these parameters revert to their initial values. This means that training the network 10 times for 10 epochs will give you a result similar to if you had trained the network just once for 10 epochs. This is why training a network 10 times for 10 epochs is not equivalent to training 1 time for 100 epochs.
  3 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!