-
Notifications
You must be signed in to change notification settings - Fork 75
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
run case_study_bank.py plotting issue on Mac #27
Comments
The training is okay, can't plot the causal graph |
If your python env was created with conda, you can also install
|
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 |
The Google Colab has installed the graphviz by default,so we can use it directly. |
Ok, Thanks for explanation! |
By the way, I did install graphviz on my MacOs with "pip install graphviz" and pycharm python package, like following: 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? |
The pip installed The description from pypi: |
@lixfz in my case, the pip install helped, so I should install the os package already. |
There is a issue happened when run case_study_bank.py on Mac Machine:
MacOS Monterey 12.3.1
Python 3.10
Errors as following:
why.plot_causal_graph()
...
07-17 17:18:23 I ylearn._why.py 508 - encode treatment ...
07-17 17:18:23 I ylearn._why.py 518 - preprocess data ...
07-17 17:18:24 I ylearn._why.py 536 - fit estimator for Card_Category with PermutedTLearner(model=GradientBoostingRegressor(max_depth=100), random_state=2022, kwargs=None)
/Users/jevin/dev/python/ai/YLearn/ylearn/utils/_common.py:95: UserWarning: Failed to display pydot image: [Errno 2] "fdp" not found in path..
warnings.warn(f'Failed to display pydot image: {e}.')
The text was updated successfully, but these errors were encountered: