This function saves the constructed emulator to a .pkl
file.
Details
See further examples and tutorials at https://mingdeyu.github.io/dgpsi-R/dev/.
Note
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()
.