Constant#

class gpjax.mean_functions.Constant(constant=0.0)[source]#

Bases: AbstractMeanFunction

Constant mean function.

A constant mean function. This function returns a repeated scalar value for all inputs. The scalar value itself can be treated as a model hyperparameter and learned during training but defaults to 1.0.

Expand for references to gpjax.mean_functions.Constant

Backend Module Design

The Sharp Bits / How does the parameter system work? / When do I need to call val()?

fit

fit_natgrads

conjugate_loocv

Parameters:

constant (Any)