If I want to train a model with train_generator, is there a significant difference between choosing
and
Steps per epoch does not connect to epochs.
Naturally what you want if to 1 epoch your generator pass through all of your training data one time. To achieve this you should provide steps per epoch equal to number of batches like this:
steps_per_epoch = int( np.ceil(x_train.shape[0] / batch_size) )
as from above equation the largest the batch_size
, the lower the steps_per_epoch
.
Next you will choose epoch based on chosen validation. (choose what you think best)
The Steps per epoch denote the number of batches to be selected for one epoch. If 500 steps are selected then the network will train for 500 batches to complete one epoch. If we select the large number of epochs it can be computational
Based on what you said it sounds like you need a larger batch_size
, and of course there are implications with that which could impact the steps_per_epoch and number of epochs.
To solve for jumping-around
Implications of a larger batch-size
When to reduce epochs
When to adjust steps-per-epoch