-
Notifications
You must be signed in to change notification settings - Fork 51
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
show confusion matrix on test fails #46
Comments
Hi I am still having this problem, which prevents me from getting to the "create video snippets" step. Here is the most recent version of the error:ValueError: The number of FixedLocator locations (1486), usually from a call to set_ticks, does not match the number of ticklabels (1640).
|
Is there any update to this? I also ran into the same error and cannot generate video snippets. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
can you help? here is the error message:
Two confusion matrices - top: counts, bottom: probability with true positives in diagonal
ValueError: The number of FixedLocator locations (1424), usually from a call to set_ticks, does not match the number of ticklabels (1438).
Traceback:
File "c:\programdata\anaconda3\envs\bsoid_v2\lib\site-packages\streamlit\script_runner.py", line 332, in _run_script
exec(code, module.dict)
File "C:\Users\McCormick Lab\Documents\Python\B-SOID\bsoid_app.py", line 62, in
learning_protocol.main()
File "C:\Users\McCormick Lab\Documents\Python\B-SOID\bsoid_app\machine_learner.py", line 82, in main
self.show_confusion_matrix()
File "C:\Users\McCormick Lab\Documents\Python\B-SOID\bsoid_app\machine_learner.py", line 58, in show_confusion_matrix
fig = visuals.plot_confusion(self.validate_clf, self.x_test, self.y_test)
File "C:\Users\McCormick Lab\Documents\Python\B-SOID\bsoid_app\bsoid_utilities\visuals.py", line 79, in plot_confusion
cm = plot_confusion_matrix(validate_clf, x_test, y_test, cmap=sns.cm.rocket_r, normalize=normalize)
File "c:\programdata\anaconda3\envs\bsoid_v2\lib\site-packages\sklearn\utils\validation.py", line 72, in inner_f
return f(**kwargs)
File "c:\programdata\anaconda3\envs\bsoid_v2\lib\site-packages\sklearn\metrics_plot\confusion_matrix.py", line 233, in plot_confusion_matrix
values_format=values_format)
File "c:\programdata\anaconda3\envs\bsoid_v2\lib\site-packages\sklearn\utils\validation.py", line 72, in inner_f
return f(**kwargs)
File "c:\programdata\anaconda3\envs\bsoid_v2\lib\site-packages\sklearn\metrics_plot\confusion_matrix.py", line 125, in plot
xlabel="Predicted label")
File "c:\programdata\anaconda3\envs\bsoid_v2\lib\site-packages\matplotlib\artist.py", line 1113, in set
return self.update(kwargs)
File "c:\programdata\anaconda3\envs\bsoid_v2\lib\site-packages\matplotlib\artist.py", line 998, in update
ret.append(func(v))
File "c:\programdata\anaconda3\envs\bsoid_v2\lib\site-packages\matplotlib\axes_base.py", line 63, in wrapper
return get_method(self)(*args, **kwargs)
File "c:\programdata\anaconda3\envs\bsoid_v2\lib\site-packages\matplotlib\cbook\deprecation.py", line 451, in wrapper
return func(*args, **kwargs)
File "c:\programdata\anaconda3\envs\bsoid_v2\lib\site-packages\matplotlib\axis.py", line 1796, in _set_ticklabels
return self.set_ticklabels(labels, minor=minor, **kwargs)
File "c:\programdata\anaconda3\envs\bsoid_v2\lib\site-packages\matplotlib\axis.py", line 1718, in set_ticklabels
"The number of FixedLocator locations"
The text was updated successfully, but these errors were encountered: