namespace gpr::capi::testing

Overview

namespace testing {
 
// global functions
 
gpr::GaussianProcessRegression* nativeModel(gpr_model_t model);
int setHssvdBackend(gpr_model_t model, gpr_hssvd_backend_t selection);
 
} // namespace testing

Detailed Documentation

Global Functions

gpr::GaussianProcessRegression* nativeModel(gpr_model_t model)

The native Gaussian process behind model.

A test may change reporting options on it, such as the variance convention, before it queries the handle.

Returns:

nullptr for a NULL, released or non-GP handle, or one that has not been initialized.

int setHssvdBackend(gpr_model_t model, gpr_hssvd_backend_t selection)

Select the HS-SVD or the dense Cholesky posterior of a trained handle and condition it again on the handle’s training data.

Returns:

GPR_SUCCESS, GPR_ERR_NULL_HANDLE for a dead handle, GPR_ERR_NOT_TRAINED before gpr_model_train, or the status of a failed conditioning.