PythonDataScienceHandbook
PythonDataScienceHandbook copied to clipboard
Appendix : Covariance Type
The code is found in the a/m.
Encountering error:
cannot unpack non-iterable numpy.float64 object
Error in callback <function install_repl_displayhook.
It is related to draw_ellipse(model.means_[0], model.covariances_[0], ax[i], alpha=0.2)
When model.covariance passed data to width, height = 2 * np.sqrt(covariance)
I think that the reason is height is blank or no value causing the problem.
What is the fix?
Thank you.