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
)
| 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) |
nothing calls this directly
no test coverage detected