Model.plot

In [ ]:
Model.plot(dimensions: tuple = (1, 2),
           ax=None, 
           **style_kwds,)

Draws a decomposition scatter plot.

Parameters

Name Type Optional Description
dimensions
tuple
Tuple of two elements representing the IDs of the model's components.
ax
Matplotlib axes object
The axes to plot on.
**style_kwds
any
Any optional parameter to pass to the Matplotlib functions.

Returns

ax : Matplotlib axes object

Example

In [2]:
from verticapy.learn.decomposition import PCA
model = PCA(name = "public.PCA_iris")
model.drop()
model.fit("public.iris",)
model.plot()
Out[2]:
<AxesSubplot:xlabel='Dim1 (92.5%)', ylabel='Dim2 (5.3%)'>