Calculate training f1 scores