mojolearn.WhiteKernel#
- class mojolearn.WhiteKernel(noise_level=1.0, noise_level_bounds=(1e-05, 100000.0))[source]#
Bases:
KernelWhite noise kernel: adds
noise_levelto the training diagonal.Follows scikit-learn’s
WhiteKernel: the noise appears only on the diagonal of the training covariance, and contributes zero to the covariance between training and query points. Add it to another kernel to model observation noise.- Parameters:
noise_level (float, default 1.0) – The noise variance.
noise_level_bounds (pair of float or “fixed”, default (1e-5, 1e5)) – Bounds for the optimizer, or
"fixed"to keep the value fixed. Both bounds must be finite and positive withlow <= high; otherwiseValueErroris raised.
Examples
>>> import mojolearn >>> kernel = mojolearn.RBF(1.0) + mojolearn.WhiteKernel(0.1)
Attributes
boundsNatural log of each free hyperparameter's
(low, high)bounds, as a list of[low, high]pairs.n_dimsNumber of free hyperparameters (the length of
theta).thetaNatural log of the free hyperparameters, as a list of floats.