Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/minor doc typo fixes #28

Merged
merged 3 commits into from
Feb 14, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change judicator threshold to match normalized score
yisz committed Feb 14, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 2e22962639d533cb5881ea798ec82b8fad389987
Original file line number Diff line number Diff line change
@@ -153,7 +153,7 @@ def judicator(idx):
# and in this case, since we are computing the correctness of the sample,
# it returns True if the example is correct and False otherwise
datum = datasplit.test_full.X.iloc[idx].to_dict()
return llm_metric.calculate(**datum)["LLM_based_answer_correctness"] >= 3
return llm_metric.calculate(**datum)["LLM_based_answer_correctness"] >= 0.5
```

To use the judicator we simply pass it to the `predict` method:
2 changes: 1 addition & 1 deletion examples/ensemble_metric_with_judicator.py
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ def judicator(idx):
# and in this case, since we are computing the correctness of the sample,
# it returns True if the example is correct and False otherwise
datum = datasplit.test_full.X.iloc[idx].to_dict()
return llm_metric.calculate(**datum)["LLM_based_answer_correctness"] >= 3
return llm_metric.calculate(**datum)["LLM_based_answer_correctness"] >= 0.5


# Let's train a metric ensamble classifier