SauceCat / PDPbox

python partial dependence plot toolbox
http://pdpbox.readthedocs.io/en/latest/
MIT License
844 stars 129 forks source link

Couldn't plot using info_plots.target_plot #28

Closed sundyhw closed 3 years ago

sundyhw commented 6 years ago

image

ross_data = test_ross['data']
ross_features = test_ross['features']
ross_model = test_ross['rf_model']
ross_target = test_ross['target']

fig, axes, summary_df = info_plots.target_plot(
    df=ross_data, feature='SchoolHoliday', feature_name='SchoolHoliday', target=ross_target
)
_ = axes['bar_ax'].set_xticklabels(['Not SchoolHoliday', 'SchoolHoliday'])

I use the exact same dataset 'Rossmann Store Sales' and the same code (Tutorial: pdpbox_regression.ipynb), but I encounter the error, and the plot is empty.

Please advise, thank you!