Path: blob/master/notebooks/book1/09/discrim_analysis_dboundaries_plot2.ipynb
1193 views
Kernel: base
In [2]:
In [6]:
In [44]:
In [45]:
Out[45]:
In [46]:
In [47]:
In [48]:
Out[48]:
class 0 mean
[0, 0]
[-0.19071545 0.02087736]
[-0.19071545 0.02087736]
class 0 cov
[[4 1]
[1 2]]
[[5.1804617 1.60254369]
[1.60254369 2.27798452]]
[[6.10718958 2.40985185]
[2.40985185 5.3902066 ]]
class 1 mean
[0, 4]
[0.07952598 4.32087903]
[0.07952598 4.32087903]
class 1 cov
[[2 0]
[0 1]]
[[ 2.07126704 -0.18360974]
[-0.18360974 1.1113116 ]]
[[6.10718958 2.40985185]
[2.40985185 5.3902066 ]]
class 2 mean
[4, 4]
[3.86351869 4.16570271]
[3.86351869 4.16570271]
class 2 cov
[[1. 0.]
[0. 1.]]
[[ 0.86052694 -0.01592137]
[-0.01592137 0.84489956]]
[[6.10718958 2.40985185]
[2.40985185 5.3902066 ]]
In [37]:
In [49]:
Out[49]:
<ipython-input-44-7d6d2b5e0de0>:60: UserWarning: The following kwargs were not used by contour: 'lw'
plt.contour(xx, yy, z_p[:, j].reshape(ngrid, ngrid), [0.5], lw=3, colors="k")
In [50]:
Out[50]:
<ipython-input-44-7d6d2b5e0de0>:60: UserWarning: The following kwargs were not used by contour: 'lw'
plt.contour(xx, yy, z_p[:, j].reshape(ngrid, ngrid), [0.5], lw=3, colors="k")