#include <gpr/capi/gpridge.hpp>
Classes | |
| struct | Hyperparameters |
| struct | Prediction |
Public Member Functions | |
| ScalarSurrogate ()=default | |
| ScalarSurrogate (gpr_sgp_t h, adopt_t) noexcept | |
| ~ScalarSurrogate () | |
| ScalarSurrogate (const ScalarSurrogate &)=delete | |
| ScalarSurrogate & | operator= (const ScalarSurrogate &)=delete |
| ScalarSurrogate (ScalarSurrogate &&other) noexcept | |
| ScalarSurrogate & | operator= (ScalarSurrogate &&other) noexcept |
| void | reset () noexcept |
| gpr_sgp_t | handle () const noexcept |
| operator bool () const noexcept | |
| int | dimension () const noexcept |
| int | n_observations () const |
| void | set_kernel (BqKernel kernel) |
| void | set_mean_basis (BqBasis basis) |
| void | set_hyperparameters (const Hyperparameters &hyper) |
| Hyperparameters | hyperparameters () const |
| void | observe (const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &noise_var, int n_obs) |
| noise_var is empty for rows that share the noise variance. | |
| double | fit (bool optimize=false, int n_starts=8) |
| Returns the log marginal likelihood of the conditioned surrogate. | |
| Prediction | predict (const std::vector< double > &x_queries, int n_queries, double query_noise_var=0.0) const |
| query_noise_var of zero gives the latent standard deviation. | |
Static Public Member Functions | |
| static ScalarSurrogate | create (int dimension, BqKernel kernel=BqKernel::SquaredExponential) |
Owner of a gpr_sgp_t: a scalar GP for a noisy oracle. Arrays are row-major, one row per point.
Definition at line 1001 of file gpridge.hpp.
|
default |
Definition at line 1004 of file gpridge.hpp.
|
inline |
Definition at line 1005 of file gpridge.hpp.
|
delete |
|
inlinenoexcept |
Definition at line 1012 of file gpridge.hpp.
|
inlinestaticnodiscard |
Definition at line 1028 of file gpridge.hpp.
|
inlinenodiscardnoexcept |
Definition at line 1052 of file gpridge.hpp.
|
inline |
Returns the log marginal likelihood of the conditioned surrogate.
Definition at line 1106 of file gpridge.hpp.
|
inlinenodiscardnoexcept |
Definition at line 1044 of file gpridge.hpp.
|
inlinenodiscard |
Definition at line 1084 of file gpridge.hpp.
|
inlinenodiscard |
Definition at line 1056 of file gpridge.hpp.
|
inline |
noise_var is empty for rows that share the noise variance.
Definition at line 1096 of file gpridge.hpp.
|
inlineexplicitnodiscardnoexcept |
Definition at line 1048 of file gpridge.hpp.
|
delete |
|
inlinenoexcept |
Definition at line 1017 of file gpridge.hpp.
|
inlinenodiscard |
query_noise_var of zero gives the latent standard deviation.
Definition at line 1120 of file gpridge.hpp.
|
inlinenoexcept |
Definition at line 1038 of file gpridge.hpp.
|
inline |
Definition at line 1077 of file gpridge.hpp.
|
inline |
Definition at line 1061 of file gpridge.hpp.
|
inline |
Definition at line 1065 of file gpridge.hpp.