Difference between Iteration and Epoch in Neural Networks

--

Epoch describes the number of times the algorithm sees the entire dataset whereas an Iteration tells the number of times a batch of data passed through the algorithm.

For example, consider the input dataset consists of 100,000 records and if we train the model for 10 epochs, let the batch size = 1 i.e loading each data point every time and performing forward, backward propagation for every data point [Optimiser would be the Stochastic Gradient Descent]. Hence, the number of iterations per epoch for the above example would be 100,000 and the total number of epochs would be 10.

Originally published at https://dev.to on March 22, 2022.

--

--

Ruthvik Raja M.V
Ruthvik Raja M.V

Written by Ruthvik Raja M.V

Coding, Data Science and Business Management. Languages: Python, R. DEV Community: https://dev.to/ruthvikraja_mv, GitHub: https://github.com/ruthvikraja

No responses yet