Skip to content
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

classifier tree leaf piechart radius not scaling above 100 entries #327

Open
masterfelu opened this issue Aug 22, 2024 · 0 comments
Open

Comments

@masterfelu
Copy link

Hello.

Thank you again for making this repo public!

I am plotting XGBClassifier trees using bare dtreeviz.model().view() - below is a screenshot of one of the trees.

image

The first leaf has 10 to 100 times lower entries, but it is impossible to see the difference from the radius of the piechart.

Looking at the examples, it seems to be implemented, but I was wondering whether this is a bug or just a scaling issue. The dataset sizes in the examples are much smaller than mine. I think it is just a scaling issue - after a certain threshold(around 100), the radius doesn't increase, as can be seen in a different tree below.

image

One could implement logarithmic scaling instead of linear scaling of the pie chart radius to improve the situation.

I will definitely look at the source and try to figure it out; I just wanted to share it here. I was also wondering if there are better visualizations of the leaves for large datasets.

Thanks again,
Sayan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant