def average_over_repeats(data):
    """
    Take the expectation of generalization measures and errors over all points with the same hyperparameters

    """
    return data.groupby("experiment_id").mean()