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 raw pyarrow type check message for EvaluationModule #584

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shenxiangzhuang
Copy link

@shenxiangzhuang shenxiangzhuang commented Apr 26, 2024

Return more friendly error msg to help address error like #550 #585 quickly.

This will add a raw pyarrow error message in the last line, with example like:

ValueError: Predictions and/or references don't match the expected format.
Expected format: {'predictions': Value(dtype='float32', id=None), 'references': Value(dtype='float32', id=None)},
Input predictions: [[0.86903241 0.21559055]
...
Input references: [[0.28399844 0.26635692]
...

+ The original pyarrow error: only length-1 arrays can be converted to Python scalars

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.

None yet

1 participant