This function updates the training input and output of a GP or DGP emulator with an option to refit the emulator.
update(object, X, Y, refit, reset, verb, ...)# S3 method for dgp
update(
object,
X,
Y,
refit = FALSE,
reset = FALSE,
verb = TRUE,
N = 100,
cores = 1,
ess_burn = 10,
B = NULL,
...
)
# S3 method for gp
update(object, X, Y, refit = FALSE, reset = FALSE, verb = TRUE, ...)
An updated object
.
can be one of the following:
the S3 class gp
.
the S3 class dgp
.
the new input data which is a matrix where each row is an input training data point and each column is an input dimension.
the new output data:
If object
is an instance of the gp
class, Y
is a matrix with only one column and each row being an output data point.
If object
is an instance of the dgp
class, Y
is a matrix with its rows being output data points and columns being
output dimensions. When likelihood
(see below) is not NULL
, Y
must be a matrix with only one column.
a bool indicating whether to re-fit the emulator object
after the training input and output are updated. Defaults to FALSE
.
a bool indicating whether to reset hyperparameters of the emulator object
to their initial values when the emulator was
constructed, after the training input and output are updated. Defaults to FALSE
.
a bool indicating if the trace information will be printed during the function execution.
Defaults to TRUE
.
N/A.
number of training iterations used to re-fit the emulator object
if it is an instance of the dgp
class. Defaults to 100
.
the number of cores/workers to be used to re-fit GP components (in the same layer)
at each M-step during the re-fitting. If set to NULL
, the number of cores is set to (max physical cores available - 1)
.
Only use multiple cores when there is a large number of GP components in different layers and optimization of GP components
is computationally expensive. Defaults to 1
.
number of burnin steps for the ESS-within-Gibbs at each I-step in training the emulator object
if it is an
instance of the dgp
class. Defaults to 10
.
the number of imputations for predictions from the updated emulator object
if it is an instance of the dgp
class.
This overrides the number of imputations set in object
. Set to NULL
to use the same number of imputations set
in object
. Defaults to NULL
.
See further examples and tutorials at https://mingdeyu.github.io/dgpsi-R/.
if (FALSE) {
# See alm(), mice(), pei(), or vigf() for an example.
}
Run the code above in your browser using DataLab