mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
This commit is contained in:
parent
818d72a650
commit
decb621ff6
@ -44,6 +44,9 @@ def compute_ljp_imprison(data_dict):
|
||||
else:
|
||||
score_list.append(math.log(216))
|
||||
|
||||
if abstentions == len(score_list):
|
||||
log_distance = 0
|
||||
else:
|
||||
# compute the average of score_list (log distance)
|
||||
log_distance = sum(score_list) / len(score_list)
|
||||
# normalize the score to between 0 and 1
|
||||
|
Loading…
Reference in New Issue
Block a user