install_keras {keras3} | R Documentation |
Install Keras
Description
This function will install Keras along with a selected backend, including all Python dependencies.
Usage
install_keras(
envname = "r-keras",
...,
extra_packages = c("scipy", "pandas", "Pillow", "pydot", "ipython",
"tensorflow_datasets"),
python_version = ">=3.9,<=3.11",
backend = c("tensorflow", "jax"),
gpu = NA,
restart_session = TRUE
)
Arguments
envname |
Name of or path to a Python virtual environment |
... |
reserved for future compatibility. |
extra_packages |
Additional Python packages to install alongside Keras |
python_version |
Passed on to |
backend |
Which backend(s) to install. Accepted values include |
gpu |
whether to install a GPU capable version of the backend. |
restart_session |
Whether to restart the R session after installing (note this will only occur within RStudio). |
Value
No return value, called for side effects.
See Also
tensorflow::install_tensorflow()
[Package keras3 version 1.1.0 Index]