# NOT RUN {
# default installation
library(keras)
install_keras()
# install using a conda environment (default is virtualenv)
install_keras(method = "conda")
# install with GPU version of TensorFlow
# (NOTE: only do this if you have an NVIDIA GPU + CUDA!)
install_keras(tensorflow = "gpu")
# install a specific version of TensorFlow
install_keras(tensorflow = "1.2.1")
install_keras(tensorflow = "1.2.1-gpu")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab