-
Notifications
You must be signed in to change notification settings - Fork 215
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
flat_classification_report seems to be broken #66
Comments
I've opened a pull request. |
This bug is not fixed yet. Kindly some one do the merge and let the issue gets resolved |
metrics.flat_classification_report(test_labels, y_pred, labels=labels, digits=3) TypeError: classification_report() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given |
so is there still no fix? |
`from sklearn_crfsuite.utils import flatten print(metrics.flat_classification_report(y_test, Check this notebook: |
Hi,
it appears that flat_classification_report is now broken. Scikit-learn's classification_report no longer uses positional arguments anymore and was deprecated prior a while back. It seems this is now being enforced.
Specifically, the issue is that labels are no longer a positional argument and is instead a keyword argument.
It seems to be a simple fix so I can submit a pull request later.
The text was updated successfully, but these errors were encountered: