Fix bug where single-class targets led to incorrect Fscore