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

Method predict_log_density

gpflow/models/model.py:332–343  ·  view source on GitHub ↗

Compute the log of the probability density of the data at the new data points.

(
        self, data: RegressionData, full_cov: bool = False, full_output_cov: bool = False
    )

Source from the content-addressed store, hash-verified

330 "return: [batch..., N]",
331 )
332 def predict_log_density(
333 self, data: RegressionData, full_cov: bool = False, full_output_cov: bool = False
334 ) -> tf.Tensor:
335 """
336 Compute the log of the probability density of the data at the new data points.
337 """
338 # See https://github.com/GPflow/GPflow/issues/1461
339 assert_params_false(self.predict_y, full_cov=full_cov, full_output_cov=full_output_cov)
340
341 X, Y = data
342 f_mean, f_var = self.predict_f(X, full_cov=full_cov, full_output_cov=full_output_cov)
343 return self.likelihood.predict_log_density(X, f_mean, f_var, Y)

Callers

nothing calls this directly

Calls 2

predict_fMethod · 0.95
assert_params_falseFunction · 0.85

Tested by

no test coverage detected