MCPcopy
hub / github.com/GPflow/GPflow / test_compare_mixed_kernel

Function test_compare_mixed_kernel

tests/gpflow/conditionals/test_multioutput.py:801–814  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

799
800
801def test_compare_mixed_kernel() -> None:
802 data = DataMixedKernel
803
804 kern_list = [SquaredExponential() for _ in range(data.L)]
805 k1 = mk.LinearCoregionalization(kern_list, W=data.W)
806 f1 = mf.SharedIndependentInducingVariables(InducingPoints(data.X[: data.M, ...]))
807 model_1 = SVGP(k1, Gaussian(), inducing_variable=f1, q_mu=data.mu_data, q_sqrt=data.sqrt_data)
808
809 kern_list = [SquaredExponential() for _ in range(data.L)]
810 k2 = mk.LinearCoregionalization(kern_list, W=data.W)
811 f2 = mf.SharedIndependentInducingVariables(InducingPoints(data.X[: data.M, ...]))
812 model_2 = SVGP(k2, Gaussian(), inducing_variable=f2, q_mu=data.mu_data, q_sqrt=data.sqrt_data)
813
814 check_equality_predictions(Data.data, [model_1, model_2])
815
816
817def test_multioutput_with_diag_q_sqrt() -> None:

Callers

nothing calls this directly

Calls 5

SquaredExponentialClass · 0.90
InducingPointsClass · 0.90
SVGPClass · 0.90
GaussianClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…