This function draws validation plots of a GP, DGP, or linked (D)GP emulator.
# S3 method for dgp
plot(
x,
x_test = NULL,
y_test = NULL,
dim = NULL,
method = "mean_var",
sample_size = 50,
style = 1,
min_max = TRUE,
normalize = TRUE,
color = "turbo",
type = "points",
verb = TRUE,
M = 50,
force = FALSE,
cores = 1,
...
)# S3 method for lgp
plot(
x,
x_test = NULL,
y_test = NULL,
dim = NULL,
method = "mean_var",
sample_size = 50,
style = 1,
min_max = TRUE,
color = "turbo",
type = "points",
M = 50,
verb = TRUE,
force = FALSE,
cores = 1,
...
)
# S3 method for gp
plot(
x,
x_test = NULL,
y_test = NULL,
dim = NULL,
method = "mean_var",
sample_size = 50,
style = 1,
min_max = TRUE,
color = "turbo",
type = "points",
verb = TRUE,
M = 50,
force = FALSE,
cores = 1,
...
)
A patchwork object.
can be one of the following emulator classes:
the S3 class gp.
the S3 class dgp.
the S3 class lgp.
same as that of validate().
same as that of validate().
if dim = NULL, the index of an emulator's input within the design will be shown on the x-axis in validation plots. Otherwise, dim indicates
which dimension of an emulator's input will be shown on the x-axis in validation plots:
If x is an instance of the gp of dgp class, dim is an integer.
If x is an instance of the lgp class, dim is an integer referring
to the dimension of the global input to the linked emulator system.
This argument is only used when style = 1. Defaults to NULL.
same as that of validate().
same as that of validate().
either 1 or 2, indicating two different plotting styles for validation.
a bool indicating if min-max normalization will be used to scale the testing output, RMSE, predictive mean and std from the
emulator. Defaults to TRUE. This argument is not applicable to DGP emulators with categorical likelihoods.
a bool indicating if normalization will be used to scale the counts in validation plots of DGP emulators with categorical
likelihoods when
style = 2. Defaults to TRUE.
a character string indicating the color map to use when style = 2:
'magma' (or 'A')
'inferno' (or 'B')
'plasma' (or 'C')
'viridis' (or 'D')
'cividis' (or 'E')
'rocket' (or 'F')
'mako' (or 'G')
'turbo' (or 'H')
Defaults to 'turbo' (or 'H').
either 'line' or 'points, indicating whether to draw testing data in the OOS validation plot as a line or
individual points when the input of the emulator is one-dimensional and style = 1. This argument is not applicable to DGP emulators with
categorical likelihoods. Defaults to 'points'
a bool indicating if trace information on plotting will be printed during execution.
Defaults to TRUE.
same as that of validate().
same as that of validate().
same as that of validate().
N/A.
See further examples and tutorials at https://mingdeyu.github.io/dgpsi-R/.
if (FALSE) {
# See gp(), dgp(), or lgp() for an example.
}
Run the code above in your browser using DataLab