Skip to content

Commit

Permalink
fix bugs in cosine_match.py
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
Linmj-Judy authored Mar 11, 2024
1 parent 5cd4d3e commit 8ac8c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evals/elsuite/cosine_match.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def eval_sample(self, test_sample, rng):
)
evals.record.record_metrics(
value_recall = sum(matches)/len(matches) if matches else 0.0,
f1_score = utils.macro_f1_score_3(self.word2vec_model, sample_list, correct_answers),
f1_score = utils.cos_f1_score(self.word2vec_model, sample_list, correct_answers),
)

def run(self, recorder: RecorderBase):
Expand Down

0 comments on commit 8ac8c78

Please sign in to comment.