Early Stopping in PyTorch: Preventing Overfitting During Training | CodeSignal Learn