Description Usage Arguments Examples
validating the emulator emulator
1 2 |
emulator |
A fit object of class inheriting from |
new.inputs |
A data matrix of input(s) at which emulation is desired (new inputs).
Must contain at least all parameters given in |
new.outputs |
A matrix outputs used to validate the emulator predictions. This Matrix must have columns equal to the number of outputs. |
emulator.predictions |
Output generated from the |
verbose |
Defaults to TRUE. If FALSE, text under graphs (explanations) will not appear. |
1 2 3 4 5 6 7 8 9 10 | # Fit the emulator
fit <- fitEmulator(inputs = surfebm[1:25, 1:2],
outputs = surfebm[1:25, 3, drop = FALSE])
# Use fitted emulator to predict posterior means and variances at the new points
predictions <- predict(fit, surfebm[26:35, 1:2], sd = FALSE, var.cov = TRUE)
# Compare predictions with true values for the new inputs
# Can also compare accuracy of prediction based on posterior variance
validateEmulatorApp(fit, surfebm[26:35, 1:2], surfebm[26:35, 3], predictions, verbose = FALSE, launch.browser = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.