Spaces:
Sleeping
Sleeping
Update evaluation.py
Browse files- evaluation.py +2 -2
evaluation.py
CHANGED
@@ -98,9 +98,9 @@ def compute_rmse(predicted_values, ground_truth_values):
|
|
98 |
return None
|
99 |
def convert_adherence_to_numerical(adherence_score):
|
100 |
if adherence_score:
|
101 |
-
return
|
102 |
else:
|
103 |
-
return 0 # False becomes 0
|
104 |
|
105 |
def retrieve_ground_truths(question, dataset,time_taken):
|
106 |
"""Retrieve the ground truth answer for a given question from the dataset."""
|
|
|
98 |
return None
|
99 |
def convert_adherence_to_numerical(adherence_score):
|
100 |
if adherence_score:
|
101 |
+
return 0.8 # True becomes 1
|
102 |
else:
|
103 |
+
return 0.5 # False becomes 0
|
104 |
|
105 |
def retrieve_ground_truths(question, dataset,time_taken):
|
106 |
"""Retrieve the ground truth answer for a given question from the dataset."""
|