We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I try to calculate f1 score I get this error:
f1
return {"f1": float(score) if score.size == 1 else score} ^^^^^^ AttributeError: 'float' object has no attribute 'size'
Code to Reproduce
import evaluate f1_metric = evaluate.load("f1") result = f1_metric.compute(predictions=[0, 1], references=[0, 1]) print(result["f1"])
The text was updated successfully, but these errors were encountered:
Experiencing the same issue with the last three versions of evaluate :(
Sorry, something went wrong.
#655 - the solution is here. there is an inconsistency caused by the scikit-learn update
No branches or pull requests
When I try to calculate
f1
score I get this error:Code to Reproduce
The text was updated successfully, but these errors were encountered: