-
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
Large svg files being generated for datasets having more than a million records #48
Comments
Hiya. can you use the "nonfancy" version? There's a parameter. "fancy=False # fancy=False to remove histograms/scatterplots from decision nodes" |
Hi Terrence, I have used fancy = False, even then the image size is very big. It's because of the scatter plots drawn in leaf nodes. Is there an option to disable scatter plots for leaf nodes? I am currently changing the code to disable the scatterplots at leaf nodes but it just creates empty plots and makes it look very ugly. Thanks, |
oh!! yeah, svg is clean but huge. Can you generate that image then convert to PNG? |
I am trying to use online converters to convert but none of them are accepting svg files over 250 mb. I have edited the code in regr_leaf_viz function to disable drawing the scatter plot which makes it look very ugly. Will try some other visualizations to enhance the leaf nodes. |
can you try saving svg file to disk THEN converting? |
I saved the svg file using save_svg function and used online converters to convert it to jpg/png format |
Why not call |
I wasn't aware of them. I will try that. Thanks Terrance. |
I am trying to visualize a decision tree for one of the random forest regression models I have built and I have noticed that the svg file size is around 1.3 gb. I have reduced the depth of the model and changed the visualization to non-fancy (fancy = false) but it still generates a 250 mb+ svg file because of which rendering fails. These huge file sizes are because of the histograms being generated at the leaf node. Is there any way to have a simple output with following fields:
I have gone through the code and noticed that I need to change the function regr_leaf_node in order to suppress the histogram. Please let me know what would be the next steps.
Thanks,
Vinay
The text was updated successfully, but these errors were encountered: