deep-learning-with-R-2nd-edition-code icon indicating copy to clipboard operation
deep-learning-with-R-2nd-edition-code copied to clipboard

Plot requires explicit installation of pydot and graphviz

Open yuriy-babenko opened this issue 1 year ago • 0 comments

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

yuriy-babenko avatar Aug 15 '24 15:08 yuriy-babenko