Kriging::save & Kriging::load

Description

Save/Load a Kriging Model

Usage

  • Python

    # k = Kriging(...)
    k.save("k.h5")
    k2 = load("k.h5")
    
  • R

    # k = Kriging(...)
    k$save("k.h5")
    k2 = load("k.h5")
    
  • Matlab/Octave

    % k = Kriging(...)
    k.save("k.h5")
    k2 = load("k.h5")
    

Value

The loaded object.

Examples

f <- function(x) 1 - 1 / 2 * (sin(12 * x) / (1 + x) + 2 * cos(7 * x) * x^5 + 0.7)
set.seed(123)
X <- as.matrix(runif(10))
y <- f(X)

k <- Kriging(y, X, kernel = "matern3_2")
k
k$save("k.h5")
load("k.h5")

Results