Skip to content
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

Plot requires explicit installation of pydot and graphviz #21

Open
yuriy-babenko opened this issue Aug 15, 2024 · 0 comments
Open

Plot requires explicit installation of pydot and graphviz #21

yuriy-babenko opened this issue Aug 15, 2024 · 0 comments

Comments

@yuriy-babenko
Copy link

https://github.com/t-kalinowski/deep-learning-with-R-2nd-edition-code/blame/5d666f93d52446511a8a8e4eb739eba1c0ffd199/ch07.R#L188

Running this with the current version of the code hitting the error with plot(model) as plot requires two dependencies:

  1. pydot: pydot comes as an extra package with keras3 as keras3::install_keras(envname = "r-reticulate", extra_packages = "pydot")
  2. graphviz user must have graphviz installed i.e. brew install graphviz on a mac

To address 1):
It seems that original books's code is still using keras (not keras3).

keras3::install_keras(envname = "r-reticulate", extra_packages = "pydot") addressed the issue for me.

To address 2):
It might be worth mentioning here to install graphviz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant