Skip to content

Instantly share code, notes, and snippets.

@Niknafs
Last active June 11, 2018 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Niknafs/d2690ecaef30724125ed4d662ff1eb64 to your computer and use it in GitHub Desktop.
Save Niknafs/d2690ecaef30724125ed4d662ff1eb64 to your computer and use it in GitHub Desktop.
Greta Installation

Preparing for Installation

wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh

bash Miniconda3-latest-Linux-x86_64.sh

conda update conda

# install tensorflow in conda
conda install -c conda-forge tensorflow

# install R in conda
conda install -c r r

# install tensorflow probability in conda
pip install --user --upgrade tfp-nightly

# install R-tensorflow package
install r-tensorflow from github --> https://github.com/rstudio/tensorflow

Inside R

install.packages('devtools',lib = '/users/nniknafs/miniconda3/lib/R/library')
devtools::install_github("rstudio/tensorflow")

install.packages('greta', lib = '/users/nniknafs/miniconda3/lib/R/library')
install.packages('DiagrammeR', lib = '/users/nniknafs/miniconda3/lib/R/library')


run basic example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment