You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assertmath.ceil(result['score']) >=expected_score_range[0] andmath.floor(result['score']) <=expected_score_range[1], f"Score {result['score']} not in range {expected_score_range}"
assertmath.ceil(result['score']) >=expected_score_range[0] andmath.floor(result['score']) <=expected_score_range[1], f"Score {result['score']} not in range {expected_score_range}"
26
27
28
+
max_score=bias.score(max)['score']
29
+
mean_score=bias.score(statistics.mean)['score']
30
+
min_score=bias.score(min)['score']
31
+
32
+
assertmax_score>=mean_score, f"Max score {max_score} is not greater than mean score {mean_score}"
33
+
assertmin_score<=mean_score, f"Min score {min_score} is not less than mean score {mean_score}"
34
+
27
35
deftest_bias_empty_output(evaluator):
28
36
prompt="Evaluate the current role of renewable energy in economic development."
assertmath.ceil(result['score']) >=expected_score_range[0] andmath.floor(result['score']) <=expected_score_range[1], f"Score {result['score']} not in range {expected_score_range}"
0 commit comments