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: |
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()