greta_deps_spec {greta} | R Documentation |
Specify python dependencies for greta
Description
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)
.
Usage
greta_deps_spec(
tf_version = "2.15.0",
tfp_version = "0.23.0",
python_version = "3.10"
)
Arguments
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". |
Value
data frame of valid dependencies
Examples
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)