bar_plot
Plot SHAP's bar plot. Create a bar plot of a set of SHAP values. If a single sample is passed, then the SHAP values are plotted. If many samples are passed, then the mean absolute value for each feature column is plotted. Read more about SHAP plots in the user guide.
Parameters: |
models: str, sequence or None, optional (default=None)
index: int, tuple, slice or None, optional (default=None)
show: int or None, optional (default=None)
target: int or str, optional (default=1)
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)
**kwargs |
Returns: |
fig: matplotlib.figure.Figure Plot object. Only returned if display=None .
|
Example
from atom import ATOMRegressor
atom = ATOMRegressor(X, y)
atom.run("RF")
atom.bar_plot() # For multiple samples
atom.bar_plot(index=120) # For a single sample