Trains a GP surrogate model from parameter-observation pairs. Uses squared exponential (RBF) kernel with automatic relevance determination (ARD) via median heuristic for length scale.
Arguments
- X_train
Matrix (n x npar). Training parameter sets.
- Y_train
Matrix (n x nobs). Corresponding model outputs.
- length_scale
Numeric. Kernel length scale. If 0 (default), uses the median heuristic (median pairwise distance).
- signal_var
Numeric. Signal variance. If 0, uses variance of Y.
- noise_var
Numeric. Observation noise variance.
Value
A list of class step_gp containing trained GP components:
K_inv (inverse kernel matrix), alpha (weight vectors), hyperparameters.