gpp_python_gaussian_process

Contents:

gpp_python_gaussian_process.hpp

This file registers the translation layer for constructing a GaussianProcess and invoking its member functions (see gpp_math.hpp) from Python.

namespace optimal_learning

Macro to allow restrict as a keyword for C++ compilation and CUDA/nvcc compilation. See related entry in gpp_common.hpp for more details.

gpp_python_gaussian_process.cpp

This file has the logic to construct a GaussianProcess (C++ object) from Python and invoke its member functions. The data flow follows the basic 4 step from gpp_python_common.hpp.

Note

several internal functions of this source file are only called from Export*() functions, so their description, inputs, outputs, etc. comments have been moved. These comments exist in Export*() as Python docstrings, so we saw no need to repeat ourselves.

namespace optimal_learning

Macro to allow restrict as a keyword for C++ compilation and CUDA/nvcc compilation. See related entry in gpp_common.hpp for more details.

Functions

void ExportGaussianProcessFunctions()

Exports constructor and member functions (with docstrings) from GaussianProcess:

  1. Constructor accepting Python structures
  2. Evaluation of mean, variance, cholesky of variance (and their gradients)