Skip to content

Commit 8ac8c78

Browse files
authored
fix bugs in cosine_match.py
fix bug
1 parent 5cd4d3e commit 8ac8c78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evals/elsuite/cosine_match.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.macro_f1_score_3(self.word2vec_model, sample_list, correct_answers),
337+
f1_score = utils.cos_f1_score(self.word2vec_model, sample_list, correct_answers),
338338
)
339339

340340
def run(self, recorder: RecorderBase):

0 commit comments

Comments
 (0)