Skip to content

Add input validation for predictions and references in accuracy metric#725

Open
Rushi1696 wants to merge 2 commits intohuggingface:mainfrom
Rushi1696:improve-docs
Open

Add input validation for predictions and references in accuracy metric#725
Rushi1696 wants to merge 2 commits intohuggingface:mainfrom
Rushi1696:improve-docs

Conversation

@Rushi1696
Copy link

What does this PR do?

Adds explicit input validation for predictions and references in the accuracy metric.

Why?

This improves robustness by providing clearer error messages and preventing unexpected behavior when inputs are invalid.

Tests

No new tests added. Existing tests cover expected behavior.

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.

1 participant