GithubHelp home page GithubHelp logo

Comments (8)

parrt avatar parrt commented on May 16, 2024

Hiya. can you use the "nonfancy" version? There's a parameter. "fancy=False # fancy=False to remove histograms/scatterplots from decision nodes"

from dtreeviz.

vinnsvinay avatar vinnsvinay commented on May 16, 2024

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,
Vinay

from dtreeviz.

parrt avatar parrt commented on May 16, 2024

oh!! yeah, svg is clean but huge. Can you generate that image then convert to PNG?

from dtreeviz.

vinnsvinay avatar vinnsvinay commented on May 16, 2024

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.

from dtreeviz.

parrt avatar parrt commented on May 16, 2024

can you try saving svg file to disk THEN converting?

from dtreeviz.

vinnsvinay avatar vinnsvinay commented on May 16, 2024

I saved the svg file using save_svg function and used online converters to convert it to jpg/png format

from dtreeviz.

parrt avatar parrt commented on May 16, 2024

Why not call convert or something via os.exec()? (i.e., standard commands from command line)

from dtreeviz.

vinnsvinay avatar vinnsvinay commented on May 16, 2024

I wasn't aware of them. I will try that. Thanks Terrance.

from dtreeviz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.