View source: R/install_greta_deps.R
greta_deps_spec | R Documentation |
A helper function for specifying versions of Tensorflow (TF), Tensorflow
Probability (TFP), and Python. Defaulting to 2.15.0, 0.23.0, and 3.10,
respectively. You can specify the version that you want to install, but
it will check if these are compatible. That is, if you specify versions of
TF/TFP/Python which do not work with each other, it will error and give
a suggested version to install. It does this by using a dataset,
greta_deps_tf_tfp
, to check if the versions of TF, TFP, and Python
specified are compatible on your operating system. You can inspect
this dataset with View(greta_deps_tf_tfp)
.
greta_deps_spec(
tf_version = "2.15.0",
tfp_version = "0.23.0",
python_version = "3.10"
)
tf_version |
Character. Tensorflow (TF) version in format major.minor.patch. Default is "2.15.0". |
tfp_version |
Character.Tensorflow probability (TFP) version major.minor.patch. Default is "0.23.0". |
python_version |
Character. Python version in format major.minor.patch. Default is "3.10". |
data frame of valid dependencies
greta_deps_spec()
greta_deps_spec(tf_version = "2.15.0")
greta_deps_spec(tf_version = "2.15.0", tfp_version = "0.23.0")
greta_deps_spec(tf_version = "2.15.0", python_version = "3.10")
greta_deps_spec(
tf_version = "2.15.0",
tfp_version = "0.23.0",
python_version = "3.10"
)
# this will fail
## Not run:
greta_deps_spec(
tf_version = "2.11.0",
tfp_version = "0.23.0",
python_version = "3.10"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.