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
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 askeras3::install_keras(envname = "r-reticulate", extra_packages = "pydot")
2) graphviz user must have graphviz installed i.e.brew install graphviz
on a macTo 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