sperm.gaussian_process.GaussianProcessRegressor#

class sperm.gaussian_process.GaussianProcessRegressor(*, n_basis=20, degree=3, alpha=1e-2, prior_variance=100.0, smoothness=1.0, normalize_y=False, optimizer_tol=1e-8, max_iter=1000, priors=None)[source]#

Additive P-spline GP whose posterior mean obeys global shape priors.

The coefficient posterior is Gaussian. Shape priors are imposed by the Mahalanobis projection of its mean onto a polyhedron; posterior draws are therefore not shape constrained.