One complete pass of the training dataset through the algorithm is referred to as an epoch in machine learning. The number of epochs is a critical hyperparameter for the method. It defines the number of epochs or complete passes through the algorithm’s training or learning phase for the entire training dataset.