SauceCat/PDPbox

pdp.pdp_interact_plot only plots 1 graph instead of 3

WBuddhi opened this issue · 1 comments

The pdp_interact_plot is meant to print 3 graphs isn't it? Feature 1 vs y, Feature 2 vs y and finally a contour graph. Mine only prints the contour graph.

Same issue. When I try the Jeremy Howard ML course, in which I guess he 's using PDPbox 0.1.0, I pip installed PDPbox 0.3.0,
and executed the following code:

feats = ['saleElapsed', 'YearMade']
p = pdp.PDPInteract(model=m,df=x,model_features=list(df_trn2.columns),
                       features=feats,feature_names=feats,n_classes=0)
fig, axes = p.plot(plot_pdp=True,to_bins=True)
fig

According to source code:

plot_pdp : bool, optional
If it is True, pdp for each feature will be plotted. Default is False.

If I set plot_pdp=True, it should plot 3 plots. But there's only 1 contour.
ps: In v0.1.0, parameter only_inter controls number of plots.