Skip to content

Commit 647bb05

Browse files
Update instantiate.py
1 parent f43de89 commit 647bb05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

promptwizard/glue/promptopt/instantiate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def evaluate(self, test_dataset_jsonl: str) -> float:
143143

144144
total_correct += answer[self.EvalLiterals.IS_CORRECT]
145145
total_count += 1
146-
result = {"accuracy": f"{total_correct}/{total_count} : {total_correct/total_count}%",
146+
result = {"accuracy": f"{total_correct}/{total_count} : {total_correct/total_count*100.0}%",
147147
"predicted": answer[self.EvalLiterals.PREDICTED_ANS],
148148
"actual": json_obj[DatasetSpecificProcessing.FINAL_ANSWER_LITERAL]}
149149
self.iolog.append_dict_to_chained_logs(result)

0 commit comments

Comments
 (0)