Experiment - Training loop structure
Problem:You have a simple neural network trained on a small dataset. The training loop runs but the model does not improve much after a few epochs.
Current Metrics:Training loss starts at 1.2 and only decreases to 1.0 after 10 epochs. Validation loss stays around 1.1 with accuracy around 50%.
Issue:The training loop is missing key steps like zeroing gradients, proper loss calculation, and optimizer steps, causing poor learning.