PDPbox icon indicating copy to clipboard operation
PDPbox copied to clipboard

Matplotlib version?

Open sid-kap opened this issue 3 years ago • 8 comments

Is there a chance we could loosen the matplotlib requirement for this project? It's currently requiring matplotlib==3.1.1; I'm wondering if something more flexible, like matploblib>=3,<4 would work?

sid-kap avatar Mar 24 '21 17:03 sid-kap

This fact prevents me from installing PDPbox in my environment (Windows 10 with Python 3.9.1), as I do not have a compiler on my machine and cannot install one. Thus I cannot install this old matplotlib version.

maxkoe avatar May 27 '21 15:05 maxkoe

Also requesting this! matplotlib 3.1.1 is 2 years old as of writing. It's difficult to use pdpbox if I have to use such an out of date matplotlib.

zeromh avatar Aug 17 '21 15:08 zeromh

Same here. I had to move to other packages because of the outdated dependency, but I do like the PDPBox package. Any update on a release?

Djtrip83 avatar Dec 08 '21 10:12 Djtrip83

Version 0.2.0 does not have this requirement, I successfully installed. During the installation process, the matplolib request "METADATA", I copy it from "matplotlib_inline-0.1.3.dist-info"

VVER0114 avatar Dec 19 '21 05:12 VVER0114

Same here. I would like to use PDPbox with the latest matplotlib ! matplotlib==3.1.1 can't work with Python 3.9.

toshi-k avatar Feb 16 '22 13:02 toshi-k

Same here. I had to move to other packages because of the outdated dependency, but I do like the PDPBox package. Any update on a release?

any recommended package to use?

gulstein86 avatar Mar 29 '22 03:03 gulstein86

Seemingly matlplotlib>=3.2.2 is the lowest to go. Forced updated to version 3.2.2:

pip install pdpbox>=0.2.1
pip install matplotlib>=3.2.2

Ran this code in google codelab:

from pdpbox import pdp
feat_name = 'wr_40_end'
for feat_name in more_important_features[:10]:
    print(f'plot for feat_name:{feat_name}')
    p_isolate = pdp.pdp_isolate(rfr, X, X.columns, feat_name) 
    fig, axes = pdp.pdp_plot(p, feat_name, plot_lines=True)
    fig.show()
p_interact = pdp.pdp_interact(rfr, X, X.columns, more_important_features)
fix, axes = pdp.pdp_interact_plot(p_interact, more_important_features)

And got:

findfont: Font family ['Arial'] not found. Falling back to DejaVu Sans.
findfont: Font family ['Arial'] not found. Falling back to DejaVu Sans.
findfont: Font family ['Arial'] not found. Falling back to DejaVu Sans.
findfont: Font family ['Arial'] not found. Falling back to DejaVu Sans.

Other than above warnings, there were no problems.


Thanks.

brookman1 avatar May 03 '22 20:05 brookman1

The latest version, v0.3.0, has been released. We recommend updating to this version and checking if it resolves the issue you're facing. Your feedback is appreciated. Thank you for your patience and support.

SauceCat avatar Jun 05 '23 05:06 SauceCat