aidotse/LeakPro

Loss in training loops

Aperta

#239 aperta il 24 feb 2025

 (1 commento) (0 reazioni) (0 assegnatari)Python (26 fork)auto 404
good first issue

Metriche repository

Star
 (23 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor