Giter Club home page Giter Club logo

Comments (7)

jphall663 avatar jphall663 commented on May 24, 2024

Do you mean the code in the notebook does not work?

from interpretable_machine_learning_with_python.

mananshukla6 avatar mananshukla6 commented on May 24, 2024

The code works completely fine, just the GraphViz portion throws an error.
I have already created the .gv file and when I am trying to convert that to a png file it says "File not found"

from interpretable_machine_learning_with_python.

jphall663 avatar jphall663 commented on May 24, 2024

I'll need a lot more info to help here ...

Are you using the Docker container? Or did you attempt to install the dependencies yourself?

Are you sure GraphViz is installed and on your path? What happens when you type dot -Tpng in your console?

Are you sure the .gv file was really created? What is the output of ls or dir (on windows) in the root directory of the repo after you run the cell that creates the .gv?

Thanks!

from interpretable_machine_learning_with_python.

sarvendras avatar sarvendras commented on May 24, 2024

@jphall663 this is a great article thanks much. I am getting error at these lines under heading(Create PNG from GraphViz dot file and display)
_ = subprocess.call(png_args)
Error description: FileNotFoundError: [WinError 2] The system cannot find the file specified

I have also installed GraphViz using pip command and using anaconda spyder as IDE.
One more doubt I am executing all code in python only ..while in thread you mentioned that "Then a GraphViz command line tool is used to create a static PNG image from the dot file "..what does it mean..

Please let me know if anything more information is required..

Thanks.
Sarvendra

from interpretable_machine_learning_with_python.

sarvendras avatar sarvendras commented on May 24, 2024

@jphall663 Please help to suggest..this is little urgent :)

from interpretable_machine_learning_with_python.

Jinruizhang01 avatar Jinruizhang01 commented on May 24, 2024

Hi, Sarvendra,

I think you need to add shell=True :
_ = subprocess.call(png_args, shell=True)

Hope you can solve the problem.

-Jin

from interpretable_machine_learning_with_python.

jphall663 avatar jphall663 commented on May 24, 2024

Sorry for any inconvenience and how long it took me to respond. I incorporated the comment above into the code comments. Hope that helps in the future!

from interpretable_machine_learning_with_python.

Related Issues (6)

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.