-
Notifications
You must be signed in to change notification settings - Fork 37
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
log_sklearn_plot: exception when plot params are passed. #812
Comments
Good catch! It looks like @ocraft Are you interested in submitting a PR? |
Sure, I've fixed that in the PR: #813. Interestingly, there was already a test for it, but only for "confusion_matrix" and "title", and this particular plot has such an argument, so the test passed. The plot's parameters themselves should remain, as they are useful; for example, the title is necessary to distinguish between two different plots of the same type in the same report. In other parts of the application, the "normalized" parameter is utilized, so I didn't change anything else. |
Interesting, thanks. The reason it passes for |
When plot params (title, x_label etc.) are passed, e.g.:
the exception "TypeError: got an unexpected keyword argument 'title'" is thrown.
It's because of this line in the log_sklearn_plot method:
The condition
if k not in plot_config or k != "normalized"
is always true for all params different that "normalized".The text was updated successfully, but these errors were encountered: