Model.plot_scree

In [ ]:
Model.plot_scree(ax=None, 
                 **style_kwds,)

Draws a decomposition scree plot.

Parameters

Name Type Optional Description
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 [10]:
from verticapy.learn.decomposition import PCA
model = PCA(name = "public.PCA_titanic")
model.drop()
model.fit("public.titanic",)
model.plot_scree()
Out[10]:
<AxesSubplot:xlabel='"dimensions"', ylabel='"percentage_explained_variance"'>