Tyring to build some neural networks using Keras from the 'Deep Learning with R' book, I keep encountering the same error that TensorFlow has not been found in my RStudio session. Looked up similar problemshoot (Python module tensorflow was not found. (Similar to issue #144)) but it doesn't solve my error.
Trying to execute this code:
model <- keras_model_sequential() %>%
layer_dense(units = 25, input_shape = c(468)) %>%
layer_dense(units = 12, activation = "softmax")
Followed these steps for using the conda environment that already has TensorFlow:
More info using
reticulate::conda_version()
sessionInfo()
and library(tensorflow)
use_condaenv("tf")
sess <- tf$Session()
I don't understand why this is not working. Hopefully somebody can help me out with this!?
Cheers