This function will install Keras along with a selected backend, including all Python dependencies.
install_keras(
envname = "r-keras",
...,
extra_packages = c("scipy", "pandas", "Pillow", "pydot", "ipython",
"tensorflow_datasets"),
python_version = ">=3.9,
No return value, called for side effects.
Name of or path to a Python virtual environment
reserved for future compatibility.
Additional Python packages to install alongside Keras
Passed on to reticulate::virtualenv_starter()
Which backend(s) to install. Accepted values include "tensorflow"
, "jax"
and "torch"
whether to install a GPU capable version of the backend.
Whether to restart the R session after installing (note this will only occur within RStudio).
tensorflow::install_tensorflow()