update {dgpsi} | R Documentation |
Update a GP or DGP emulator
Description
This function updates the training input and output of a GP or DGP emulator with an option to refit the emulator.
Usage
update(object, X, Y, refit, reset, verb, ...)
## S3 method for class 'dgp'
update(
object,
X,
Y,
refit = FALSE,
reset = FALSE,
verb = TRUE,
N = 100,
cores = 1,
ess_burn = 10,
B = NULL,
...
)
## S3 method for class 'gp'
update(object, X, Y, refit = FALSE, reset = FALSE, verb = TRUE, ...)
Arguments
object |
can be one of the following:
|
X |
the new input data which is a matrix where each row is an input training data point and each column is an input dimension. |
Y |
the new output data:
|
refit |
a bool indicating whether to re-fit the emulator |
reset |
a bool indicating whether to reset hyperparameters of the emulator |
verb |
a bool indicating if the trace information will be printed during the function execution.
Defaults to |
... |
N/A. |
N |
number of training iterations used to re-fit the emulator |
cores |
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 |
ess_burn |
number of burnin steps for the ESS-within-Gibbs at each I-step in training the emulator |
B |
the number of imputations for predictions from the updated emulator |
Details
See further examples and tutorials at https://mingdeyu.github.io/dgpsi-R/.
Value
An updated object
.
Note
The following slots:
-
loo
andoos
created byvalidate()
; -
results
created bypredict()
; and -
design
created bydesign()
in
object
will be removed and not contained in the returned object.-
Any R vector detected in
X
andY
will be treated as a column vector and automatically converted into a single-column R matrix. Thus, ifX
is a single data point with multiple dimensions, it must be given as a matrix.
Examples
## Not run:
# See alm(), mice(), pei(), or vigf() for an example.
## End(Not run)