Back to problems

Calculate Precision, Recall, and F1

Algorithm · Intuit · Medium

You are given a collection of binary classification records. The positive class is 1. Each record includes: actual: an integer 0 or 1 predicted: an integer 0 or 1 confidence: a float score between 0 and 1 indicating how strongly the model favors the positive class For example, a record may look like {"actual": 0, "predicted": 1, "confidence": 0.71}. Using the supplied actual and predicted labels only, implement the following in Python or pseudocode: Determine these…

Checking your access…