If `yhat` is constant, then we get a perfect score `AveragePrecision()(yhat, y) == 1`. Is this really what we want here?
If
yhatis constant, then we get a perfect scoreAveragePrecision()(yhat, y) == 1. Is this really what we want here?