Factory function called by GPNode to create the wrapper for a specified GP package
CreateWrappedGP(
wrapper,
X,
y,
y_var,
gp_control,
init_covpars,
retrain_buffer_length,
add_buffer_in_prediction
)The wrapper of the chosen GP package, containing the respective GP and information on the shared points and those stored in the buffer.
A string specifying what GP implementation is used
Input data matrix with x_dim columns and at maximum Nbar rows. Is used to create the first iteration of the local GP.
Value of target variable at input point x; has to be a one-dimensional matrix or a vector; any further columns will be ignored
Variance of the target variable; has to be a one-dimensional matrix or vector
A list of GP implementation-specific options, passed directly to the wrapped GP implementation
Initial covariance parameters of the local GP
Only retrain when the number of buffer points or collected points exceeds this value
If TRUE, points in the data buffers are added to the GP before prediction. They are added into a temporarily created GP which contains the not yet included points. The GP in the node is not yet updated.
A detailed list of expected functions from GPTree and GPNode can be found in the comments of this file. Currently, GPs from the DiceKriging package (WrappedDiceKrigingGP) and mlegp package (WrappedmlegpGP) are implemented. The user can create their own wrapper using WrappedGP.