Select the Python environment used for TensorFlow-backed LSTM fits
Source:R/elcf4r_tensorflow_env.R
elcf4r_use_tensorflow_env.RdThis helper provides an explicit, user-invoked way to bind the Python
environment used by reticulate before calling elcf4r_fit_lstm().
Arguments
- python
Optional path to a Python interpreter passed to
reticulate::use_python().- virtualenv
Optional virtualenv name or path passed to
reticulate::use_virtualenv().- required
Logical passed to the corresponding
reticulateselector.
Examples
if (interactive() &&
requireNamespace("reticulate", quietly = TRUE) &&
reticulate::virtualenv_exists("r-tensorflow")) {
elcf4r_use_tensorflow_env(virtualenv = "r-tensorflow")
}