Search code examples
python-3.xtensorflowmachine-learninggradienttensorflow-gradient

Difference between steps and num_epochs


I don't understand the need of using steps and num_epochs in any kind of ML code.

Some programs include both variables simultaneously.

Can anyone help me out?


Solution

  • Let's say you got a data of size 1000, num_epoch is 10 and step is 200. At each epoch, the program is going to process each steps. Thus epoch 1 -> 200..400..600..800..1000, epoch 2 -> 200..400..600..800..1000 and so on for each epoch.