-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'Rectangle' object has no attribute 'patches' #280
Comments
After last update, errors below often occur in my case. I think that these errors completely depend on the structure of the tree built. Moreover, "try-except pass" structure doesn't work in the error of concatenation and I can't ignore the error message below. |
@baligoyem what version of the library are you using? |
@baligoyem and also which type of visualisation are you trying to make ? Your screenshot seems to be from path.py module from matplotlib library.. @parrt I think we don't have the latest PRs from dev into master and releases on pipy repository. |
matplotlib==3.5.3 I always get these errors when I try to build a dtreeviz model tree using LightGBM algorithm. There is no problem with sklearn trees. |
@baligoyem we just made a new release 2.2.1. Can you check if it solves your issue ? thanks |
We introduced this fix here : #266, when a node will not contain samples from each label.
By filtering out those labels, we can have the situation when only a single label will be in a node, which will raise this error : AttributeError: 'Rectangle' object has no attribute 'patches'
The text was updated successfully, but these errors were encountered: