Skip to content

Commit c282b66

Browse files
authored
fix bugs in cosine_match.py
1 parent 8ac8c78 commit c282b66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

evals/elsuite/cosine_match.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def eval_sample(self, test_sample, rng):
264264
)
265265
evals.record.record_metrics(
266266
value_recall=sum(matches)/len(matches) if matches else 0.0,
267-
f1_score=utils.macro_f1_score_3(self.word2vec_model, sample_list, correct_answers),
267+
f1_score=utils.macro_f1_score_2(self.word2vec_model, sample_list, correct_answers),
268268
)
269269

270270

@@ -334,7 +334,7 @@ def eval_sample(self, test_sample, rng):
334334
)
335335
evals.record.record_metrics(
336336
value_recall = sum(matches)/len(matches) if matches else 0.0,
337-
f1_score = utils.cos_f1_score(self.word2vec_model, sample_list, correct_answers),
337+
f1_score = utils.macro_f1_score_3(self.word2vec_model, sample_list, correct_answers),
338338
)
339339

340340
def run(self, recorder: RecorderBase):

0 commit comments

Comments
 (0)