plot_components
method plot_components(show=None,
title=None, figsize=None, filename=None, display=True)
[source]
Plot the explained variance ratio per component. Only available if PCA was applied on the data.
Parameters: |
show: int or None, optional (default=None)
title: str or None, optional (default=None)
figsize: tuple or None, optional (default=None)
filename: str or None, optional (default=None)
display: bool or None, optional (default=True) |
Returns: |
fig: matplotlib.figure.Figure Plot object. Only returned if display=None .
|
Example
from atom import ATOMClassifier
atom = ATOMClassifier(X, y)
atom.feature_selection(strategy="PCA", n_features=11)
atom.plot_components()