multidim.models.GaussianMixtureClassifier.plot

GaussianMixtureClassifier.plot(canvas, style='covertree')[source]

Plot a CDER model, using matplotlib or bokeh

There are several options to help visualize various aspects of the model. Typically, one wants to overlay this with the plots from the underlying multidim.PointCloud and multidim.covertree.CoverTree objects.

Parameters:
canvas : object

An instance of bokeh.plotting.figure.Figure as in canvas = bokeh.plotting.figure() or an instance of matplotlib.axes._subplots.AxesSubplot as in axes,canvas = matplotlib.pyplot.subplots()

style : str

options are “gaussians”, “covertree”, “heatmap”, “hulls”, “expatriots”, and “predictions”. Colors are generally obtained from the label names.