Training utilitiesΒΆ

Robust-training helpers: exponential sample weighting (exp_sample_weights) and early stopping on a monitored metric (EarlyStopping).

EarlyStopping([patience, min_delta, mode])

Patience-based early stopping on a monitored metric.

exp_sample_weights(n, halflife)

Exponential-decay sample weights (recent observations weighted more).