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

normalize to float in NanoBEIREvaluator, InformationRetrievalEvaluator, MSEEvaluator #3095

Closed
wants to merge 4 commits into from

Conversation

JINO-ROHIT
Copy link
Contributor

I found NanoBEIREvaluator, InformationRetrievalEvaluator, MSEEvaluator returning a mix of np.floats and native floats.

I zeroed in on the issue and found that the 'prefix_name_to_metrics' was causing the problem, this simple fix just converts to floats the value element while destructing the dictionary.

Fixes #3093

@tomaarsen

@JINO-ROHIT JINO-ROHIT closed this Nov 28, 2024
@JINO-ROHIT JINO-ROHIT deleted the fix-3093 branch November 28, 2024 08:06
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.

NanoBeirEvaluator returns a mix of floats and numpy.float64 in the results.
1 participant