deep-learning-with-R-2nd-edition-code
deep-learning-with-R-2nd-edition-code copied to clipboard
Plot requires explicit installation of pydot and graphviz
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:
- pydot: pydot comes as an extra package with keras3 as
keras3::install_keras(envname = "r-reticulate", extra_packages = "pydot") - graphviz user must have graphviz installed i.e.
brew install graphvizon 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