117. Precision, Recall, and F1 Score

Medium

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].

Sign in to write and run your own code.

Implement solve(...)