aidotse/LeakPro

Loss in training loops

Open

#239 opened on Feb 24, 2025

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Python (26 forks)auto 404
good first issue

Repository metrics

Stars
 (23 stars)
PR merge metrics
 (PR metrics pending)

Description

Issue

Problem Description

The last batch of each epoch is usually smaller than the others. One approach is to sum the losses and divide by the total number of samples.

Currently, loss calculations in handlers sum the average loss of each batch and divide by the length of the dataloader.

Expected Behavior

What Needs to be Done

How Can It Be Tested or Reproduced

Contributor guide