Skip to content

Commit 97bb982

Browse files
Merge pull request #8 from lambda-feedback/tr-95-possible-bug-with-atol
Trying to fix bug with return value
2 parents cbb2dae + 53216d4 commit 97bb982

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def evaluation_function(response, answer, params) -> dict:
3030
real_diff = abs(response - answer)
3131
allowed_diff = atol + rtol * abs(answer)
3232
allowed_diff += spacing(answer)
33-
is_correct = real_diff <= allowed_diff
33+
is_correct = bool(real_diff <= allowed_diff)
3434

3535
return {
3636
"is_correct": is_correct,

0 commit comments

Comments
 (0)