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

Run your code to see results

⌘↵ runs against the visible tests

Loading docs…

The AI Mentor needs an account

It reads your code and the failing tests and nudges you toward the fix without handing you the answer. Free accounts get it on every problem you're working on today.