We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f43de89 commit 647bb05Copy full SHA for 647bb05
promptwizard/glue/promptopt/instantiate.py
@@ -143,7 +143,7 @@ def evaluate(self, test_dataset_jsonl: str) -> float:
143
144
total_correct += answer[self.EvalLiterals.IS_CORRECT]
145
total_count += 1
146
- result = {"accuracy": f"{total_correct}/{total_count} : {total_correct/total_count}%",
+ result = {"accuracy": f"{total_correct}/{total_count} : {total_correct/total_count*100.0}%",
147
"predicted": answer[self.EvalLiterals.PREDICTED_ANS],
148
"actual": json_obj[DatasetSpecificProcessing.FINAL_ANSWER_LITERAL]}
149
self.iolog.append_dict_to_chained_logs(result)
0 commit comments