An epoch refers to a single pass of the entire dataset to the network during training. code example
Example 1: epoch neural network definition
One Epoch is when an ENTIRE dataset is passed forward and backward
through the neural network only ONCE.
Example 2: epochs
One Epoch is completed when a complete dataset is cycled forward and backward through the neural network or you can say your neural network has watched the entire dataset for once.