This function saves the constructed emulator to a .pkl
file.
Arguments
- object
an instance of the S3 class
gp
,dgp
,lgp
, orbundle
.- pkl_file
the path to and the name of the
.pkl
file to which the emulatorobject
is saved.- light
a bool indicating if a light version of the constructed emulator (that requires a small storage) will be saved. This argument has no effects on GP or bundles of GP emulators. Defaults to
TRUE
.
Details
See further examples and tutorials at https://mingdeyu.github.io/dgpsi-R/.
Note
Since the constructed emulators are 'python' objects, save()
from R will not work as it is only for R objects. If object
was processed by set_vecchia()
to add or remove the Vecchia approximation, light
needs to be set to FALSE
to ensure
reproducibility after the saved emulator is loaded by read()
, since when light = TRUE
, the imputations generated during
emulator loading will be different.