write | R Documentation |
This function saves the constructed emulator to a .pkl
file.
write(object, pkl_file, light = TRUE)
object |
an instance of the S3 class |
pkl_file |
the path to and the name of the |
light |
a bool indicating if a light version of the constructed emulator
(that requires less disk space to store) will be saved. Defaults to |
See further examples and tutorials at https://mingdeyu.github.io/dgpsi-R/.
No return value. object
will be saved to a local .pkl
file specified by pkl_file
.
Since emulators built from the package are 'python' objects, save()
from R will not work as it would for R objects. If object
was processed by set_vecchia()
to add or remove the Vecchia approximation, light
should be set to FALSE
to ensure
reproducibility after the saved emulator is reloaded by read()
.
## Not run:
# See gp(), dgp(), lgp(), or pack() for an example.
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.