Coder Social home page Coder Social logo

Comments (8)

JianxunSu avatar JianxunSu commented on May 20, 2024

The training is okay, can't plot the causal graph

from ylearn.

lixfz avatar lixfz commented on May 20, 2024

graphviz is required to plot causal graph, see http://www.graphviz.org/download/ for more details.

If your python env was created with conda, you can also install graphviz with command :

conda install graphviz 

from ylearn.

JianxunSu avatar JianxunSu commented on May 20, 2024

Yes, it works, Thanks! So should the graphviz be included in requirements.txt or is this just a library needed for MacOS? I uploaded this notebook to Google Colab run successfully, it needn't ask me to install graphviz, the only library manually installed is just ylearn. @lixfz

from ylearn.

lixfz avatar lixfz commented on May 20, 2024

The graphviz is an operating system dependent software, can not be installed through pip command.
Generally, it should be installed through the os's package manager.

Google Colab has installed the graphviz by default,so we can use it directly.

from ylearn.

JianxunSu avatar JianxunSu commented on May 20, 2024

Ok, Thanks for explanation!

from ylearn.

JianxunSu avatar JianxunSu commented on May 20, 2024

By the way, I did install graphviz on my MacOs with "pip install graphviz" and pycharm python package, like following:
(venv) jevin@JSU YLearn (main) $ pip install graphviz
Collecting graphviz
Using cached graphviz-0.20-py3-none-any.whl (46 kB)
Installing collected packages: graphviz
Successfully installed graphviz-0.20
@lixfz

If I remove this graphviz-0.20 python library, it will generate the original error again.

I think I have installed OS level graphviz already(before downloading YLearn), this python library installation only provide an interface, is that correct?

from ylearn.

lixfz avatar lixfz commented on May 20, 2024

The pip installed graphviz is just a python wrapper of os native graphviz.

The description from pypi:

image

@JianxunSu

from ylearn.

JianxunSu avatar JianxunSu commented on May 20, 2024

@lixfz in my case, the pip install helped, so I should install the os package already.

from ylearn.

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.