What is Epoch? in Machine Learning

Hi, everybody I’ve been reading about epochs in ML. I understand that an epoch is the total number of iterations of a one for training the model, so one epoch is not a iteration but it is consisted of iterations rigth? Thanks for taking time to discuss this

Epoch is the number of iterations you need to go through the entire dataset once. Normally you would split the dataset in batches fed to the model per iteration and when all batches are fed thats when one epoch is finished.

4 Likes

Batches is like a having a bucket where can I put my training samples divided in groups? I mean if I have 300 sample and the bacht size ist 5 I then the totala number of samples shall pass through the model 60 times? Thanks.

1 Like

An epoch is a pass through all of the batches (subsets) of your dataset so that you’ve run all your examples through the model once. So if you have a set of data that you want to pass through 5 total times (in batches or all at once), you would run 5 epochs.

:slight_smile:

1 Like