(BalancingLearner) loss is cached incorrectly
there is this corner case where you ask for the real loss and for the pending loss, then the BalancingLearner makes a mistake in which loss it should return.
I would say it is a minor bug because the issue would almost never occur in practice. Yet in theory it could.