greta-dev / greta

simple and scalable statistical modelling in R
https://greta-stats.org
Other
526 stars 63 forks source link

Identify which known versions sets of TF, TFP, and Python work for greta #638

Open njtierney opened 1 month ago

njtierney commented 1 month ago

For example, currently:

njtierney commented 1 month ago

Note that these should prioritise tensorflow probability

njtierney commented 1 month ago

Notes from Golding

# very specific installation instructions, that work on AWS. It may well be possible to relax these.
install.packages("remotes")
# most likely tf2 branch?
remotes::install_github("greta-dev/greta@2a3e073")
reticulate::conda_create(envname = "greta-env-tf2",
                         python_version = "3.8.15")
reticulate::py_install(packages = "tensorflow==2.11.0", 
                       pip = TRUE,
                       envname = "greta-env-tf2",
                       method = "conda")

reticulate::py_install(packages = "tensorflow-probability==0.19.0", 
                       pip = TRUE,
                       envname = "greta-env-tf2",
                       method = "conda")

# RESTART!

# load greta
library(greta)

# check things are installed
greta_sitrep()
x <- normal(0, 1)
calculate(x, nsim = 1)
njtierney commented 1 month ago

Some information is at: https://www.tensorflow.org/install/source

Create a set of known TF/TFP/keras/numpy versions that work with each other for each OS

njtierney commented 1 month ago

From https://github.com/tensorflow/probability/releases

njtierney commented 1 month ago

Add a checker as part of #664