Overall accuracy is the law of total probability in disguise:
Here you are given raw counts per group rather than proportions, so convert them to weights first. Return the overall accuracy.
solve([700, 300], [0.95, 0.60]) -> 0.845
A model that looks strong on the easy majority can still be dragged down by a small hard subgroup, which is why reporting a single accuracy hides so much.
Sign in to write and run your own code.
solve(...)