Skip to contents

to optimizes S2 using MLE. This function automatically runs when gp_train(..., optimize=TRUE).

Usage

gp_optimize(K, Y, optim.tol = 0.1)

Arguments

K

kernel matrix (of covariates)

Y

Y vector (outcome variable)

Value

s2opt

optimized s2 value

nlml

the likelihood value at the optimal point