Zero#
- class gpjax.mean_functions.Zero[source]#
Bases:
ConstantZero mean function.
The zero mean function. This function returns a zero scalar value for all inputs. Unlike the Constant mean function, the constant scalar zero is fixed, and cannot be treated as a model hyperparameter and learned during training.
The constant is wrapped in
paramax.non_trainableto enforce this:fittreats every array leaf as trainable, so a bare array would be optimised away from zero.