MCPcopy Index your code
hub / github.com/GPflow/GPflow / test_methods_predict_log_density

Function test_methods_predict_log_density

tests/gpflow/models/test_methods.py:85–89  ·  view source on GitHub ↗
(model: gpflow.models.GPModel)

Source from the content-addressed store, hash-verified

83
84@pytest.mark.parametrize("model", _state_less_gp_models + _gp_models)
85def test_methods_predict_log_density(model: gpflow.models.GPModel) -> None:
86 rng = Datum().rng
87 Ys = rng.randn(10, 1)
88 d = model.predict_log_density((default_datum.Xs, Ys))
89 assert_array_equal(d.shape, (10,))

Callers

nothing calls this directly

Calls 2

DatumClass · 0.70
predict_log_densityMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…