scatter_plot
Plot SHAP's scatter plot. Plots the value of the feature on the x-axis and the SHAP value of the same feature on the y-axis. This shows how the model depends on the given feature, and is like a richer extension of the classical partial dependence plots. Vertical dispersion of the data points represents interaction effects. Read more about SHAP plots in the user guide.
Parameters: |
models: str, sequence or None, optional (default=None)
index: slice, sequence or None, optional (default=None)
feature: int or str, optional (default=0)
target: int or str, optional (default=1)
title: str or None, optional (default=None)
figsize: tuple, optional (default=(10, 6)))
filename: str or None, optional (default=None)
display: bool or None, optional (default=True)
**kwargs |
Returns: |
matplotlib.figure.Figure Plot object. Only returned if display=None .
|
Example
from atom import ATOMRegressor
atom = ATOMRegressor(X, y)
atom.run("RF")
atom.scatter_plot(feature="bmi")