PythonDataScienceHandbook icon indicating copy to clipboard operation
PythonDataScienceHandbook copied to clipboard

Appendix : Covariance Type

Open FluffyG88 opened this issue 3 years ago • 0 comments

The code is found in the a/m.

Encountering error: cannot unpack non-iterable numpy.float64 object Error in callback <function install_repl_displayhook..post_execute at 0x0000028D8639F9D0> (for post_execute):

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.

FluffyG88 avatar Oct 03 '22 03:10 FluffyG88