Accuracy Gain with a 95% Interval
~10 mincode completion
Implement accuracy_gain(p_new, n_new, p_base, n_base) returning the array [relative, low, high].
Where this shows up
~10 min
••••••••••••••••
8 employers weight this skill
4 quant funds, 2 health and bio companies, 2 big tech firms. Top match scores 93.
Python
import numpy as np
def accuracy_gain(p_new, n_new, p_base, n_base):
"""
Relative improvement and a 95% interval for a difference of accuracies.
Args:
p_new, n_new: new model's accuracy and number of test examples
p_base, n_base: baseline's accuracy and number of test examples
Returns:
array [relative, low, high]
"""
# YOUR CODE HERE
pass