You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in #19410, there has been interest in including additional visualizations along with the partial dependence visualizations. Extra plots would aid in the interpretation of partial dependence plots. It would be low overhead for the user to specify "hist" as an argument and have the feature distribution plotted in the same figure as the partial dependence plot. This issue only addresses the suggestion to improve partial dependence plots, not ICE plots.
Describe your proposed solution
#27388 introduces three new parameters to the from_estimator method in the PartialDependenceDisplay class:
extra_plots: A string or list of strings specifying what type of extra plot to include in the partial dependence display.
extra_plots_kw: A dictionary where the keys should match the plot type specified in extra_plots and the values are kwarg dictionaries for each plot type.
y: Only used in one-way partial dependence plots when the extra plot is a scatter plot.
Their defaults are all None, which does not affect the current PDP display behavior.
The following image can be generated by simply adding: extra_plots=["boxplot", "hist"] to the from_estimator call.
Describe alternatives you've considered, if relevant
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
I like the histogram option but I am not convinced that that the boxplot is that helpful: in particular, it wouldn't summarize well multimodal marginal distributions. Maybe a half-violinplot would be a better alternative (which is basically a a KDE-smoothed histogram).
Describe the workflow you want to enable
As discussed in #19410, there has been interest in including additional visualizations along with the partial dependence visualizations. Extra plots would aid in the interpretation of partial dependence plots. It would be low overhead for the user to specify "hist" as an argument and have the feature distribution plotted in the same figure as the partial dependence plot. This issue only addresses the suggestion to improve partial dependence plots, not ICE plots.
Describe your proposed solution
#27388 introduces three new parameters to the
from_estimator
method in thePartialDependenceDisplay
class:extra_plots
: A string or list of strings specifying what type of extra plot to include in the partial dependence display.extra_plots_kw
: A dictionary where the keys should match the plot type specified inextra_plots
and the values are kwarg dictionaries for each plot type.y
: Only used in one-way partial dependence plots when the extra plot is a scatter plot.Their defaults are all
None
, which does not affect the current PDP display behavior.The following image can be generated by simply adding:
extra_plots=["boxplot", "hist"]
to thefrom_estimator
call.Describe alternatives you've considered, if relevant
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: