For binary labels y_true/y_pred (0s and 1s), compute precision, recall, and F1 score by hand from true/false positives/negatives. Return a length-3 tensor [precision, recall, f1].
y_true
y_pred
[precision, recall, f1]
solve(...)