Skip to content

Instantly share code, notes, and snippets.

@manmedia
Last active November 1, 2021 04:29
Show Gist options
  • Save manmedia/f214e6f68e28c89ea91f3546fba66663 to your computer and use it in GitHub Desktop.
Save manmedia/f214e6f68e28c89ea91f3546fba66663 to your computer and use it in GitHub Desktop.
A short intro to Batches, Iterations, and Epochs in Neural Network
When all the #Batches# of data samples have been propagated through a Neural Network through #Iterations# such that the necessary
networks weights have been updated in the training process, we can consider an #Epoch#.
For Example - I will take #N# Picutres of Cats and Dogs, and break them into #Batches# of #B#, so that I can pass them all using #I#
iterations through my Neural Network model, update the weights, and consider #E# Epoch to be achieved for training the model. Therefore,
#E# = #B# x #I#
N.B. It may often appear tempting to mix Epochs and Iterations together. But let's save ourselves from that :D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment