R/install_python_libraries.R

#' Install Needed Python Libraries
#'
#' @details This function is only needed for its side-effect of installing 
#' tensorflow, keras and other python libraries, needed to perform all computations
#' in this package.
#' 
#' @export
#'
install_python_libraries <- function() {
  
  keras::install_keras(extra_packages = c("tensorflow-hub", "pydot"))
  reticulate::virtualenv_install(
    "r-tensorflow", 
    packages = c("git+https://www.github.com/keras-team/keras-contrib.git")
  )
  
}
neuroimaginador/dl4ni documentation built on May 3, 2019, 5:47 p.m.