View source: R/NestedKrigingClass.R
| NestedKriging | R Documentation |
"NestedKriging" using
the libKriging library.Divide-and-conquer Kriging for large designs: the data are partitioned in
nb_groups groups, one Kriging submodel is fitted per
group (then all share a common prior), and predictions are aggregated.
NestedKriging(
y = NULL,
X = NULL,
kernel = NULL,
nb_groups = NULL,
aggregation = "NK",
partition = "kmeans",
seed = 123,
regmodel = "constant",
optim = "BFGS",
objective = "LL",
parameters = NULL,
warping = NULL
)
y |
Numeric vector of response values. |
X |
Numeric matrix of input design. |
kernel |
Character defining the covariance model:
|
nb_groups |
Number of submodels (each of size ~ nrow(X)/nb_groups). |
aggregation |
Character: |
partition |
Character: |
seed |
Integer seed for the partition. |
regmodel |
Linear trend; |
optim |
Character, hyper-parameter optimization method of the
submodels: |
objective |
Character: |
parameters |
Initial or fixed values for the hyper-parameters
(named list with |
warping |
Optional character vector of per-dimension warp specs
(see |
An object with S3 class "NestedKriging", to be used with
its predict method.
Yann Richet yann.richet@asnr.fr
f <- function(X) apply(X, 1, function(x) sin(3 * x[1]) + cos(5 * x[2]))
set.seed(123)
X <- matrix(runif(2 * 400), ncol = 2)
y <- f(X)
k <- NestedKriging(y, X, kernel = "matern5_2", nb_groups = 8)
x <- matrix(runif(2 * 100), ncol = 2)
p <- predict(k, x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.