MCPcopy
hub / github.com/GPflow/GPflow / test_rbf_1d

Function test_rbf_1d

tests/gpflow/kernels/test_kernels.py:94–101  ·  view source on GitHub ↗
(variance: TensorType, lengthscales: TensorType)

Source from the content-addressed store, hash-verified

92
93@pytest.mark.parametrize("variance, lengthscales", [[2.3, 1.4]])
94def test_rbf_1d(variance: TensorType, lengthscales: TensorType) -> None:
95 X = rng.randn(3, 1)
96 kernel = SquaredExponential(lengthscales=lengthscales, variance=variance)
97
98 gram_matrix = kernel(X)
99 reference_gram_matrix = ref_rbf_kernel(X, lengthscales, variance)
100
101 assert_allclose(gram_matrix, reference_gram_matrix)
102
103
104@pytest.mark.parametrize("variance, lengthscales", [[2.3, 1.4]])

Callers

nothing calls this directly

Calls 3

SquaredExponentialClass · 0.90
ref_rbf_kernelFunction · 0.90
kernelFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…