Difficulty: Easy Tags: Metrics & Evaluation
A first-pass cancellation classifier needs one sanity-check number before the team invests in anything more sophisticated than accuracy.
Accuracy = (TP + TN) / n
n
p_1 y_1
...
p_n y_n
Scalar accuracy, 6 decimals.
1 <= n <= 10^6Input
6
1 1
0 0
1 0
1 1
0 0
0 1
Output
0.666667
No results yet
Run your code to check it against the examples, or submit to run every test.