Sunday, May 11, 2025

What is the formula for finding the number of back propagations?

To determine how many times the weights get updated during backpropagation, you can use the formula:

Weight updates = (Number of batches per epoch) × (Number of epochs)


Let's say we have a dataset of 1000 rows, and when a batch size of 10 and epoch of 10 is applied to this data, how many times do the weights get updated during the back propagation. 


Dataset size = 1000 rows

Batch size = 10

Epochs = 10


Step-by-step:

Batches per epoch = 1000 / 10 = 100

Epochs = 10

Total weight updates = 100 batches/epoch × 10 epochs = 1000



No comments:

Post a Comment