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

Add test for empty string on toxicity #142

Merged
merged 2 commits into from
Aug 30, 2023
Merged

Conversation

jamie256
Copy link
Collaborator

@jamie256 jamie256 commented Aug 30, 2023

explicitly testing empty strings and asserting that toxicity scores are run on both prompt and response.

small update in response to issue seen in an example that had a different bug that made it look like empty strings were incorrectly getting scored by this metric. Adding unit test so its clear and to cover this risk by doing better checking of the actual scores on these edge cases.

@jamie256 jamie256 requested a review from FelipeAdachi August 30, 2023 17:14
Copy link
Contributor

@FelipeAdachi FelipeAdachi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good to increase our coverage! LGTM!

@jamie256 jamie256 merged commit a469cfa into main Aug 30, 2023
@jamie256 jamie256 deleted the dev/jamie/toxicity_empty_test branch August 30, 2023 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants