MCPcopy
hub / github.com/GPflow/GPflow / _

Function _

gpflow/kullback_leiblers.py:38–49  ·  view source on GitHub ↗
(
    inducing_variable: InducingVariables,
    kernel: Kernel,
    q_mu: TensorType,
    q_sqrt: TensorType,
    whiten: bool = False,
)

Source from the content-addressed store, hash-verified

36 "return: []",
37)
38def _(
39 inducing_variable: InducingVariables,
40 kernel: Kernel,
41 q_mu: TensorType,
42 q_sqrt: TensorType,
43 whiten: bool = False,
44) -> tf.Tensor:
45 if whiten:
46 return gauss_kl(q_mu, q_sqrt, None)
47 else:
48 K = Kuu(inducing_variable, kernel, jitter=default_jitter()) # [P, M, M] or [M, M]
49 return gauss_kl(q_mu, q_sqrt, K)
50
51
52@check_shapes(

Callers

nothing calls this directly

Calls 3

gauss_klFunction · 0.85
KuuFunction · 0.85
default_jitterFunction · 0.85

Tested by

no test coverage detected