def test_sd_of_dicts(): folds = [{'test': 0.0, 'test2': 1.0}, {'test': 1.0, 'test2': 2.0}] means = validation._mean_of_dicts(folds) assert validation._sd_of_dicts(folds, means) == {'test': 0.5, 'test2': 0.5}
def test_mean_of_dicts(): folds = [{'test': 0.0, 'test2': 1.0}, {'test': 1.0, 'test2': 2.0}] assert validation._mean_of_dicts(folds) == {'test': 0.5, 'test2': 1.5}