def log_predictive_density_sampling(self, x_test, y_test, Y_metadata=None, num_samples=1000):
        mu_star, var_star = self._raw_predict(x_test)
        return self.likelihood.log_predictive_density_sampling(y_test, mu_star, var_star, Y_metadata=Y_metadata, num_samples=num_samples)
Calculation of the log predictive density by sampling
dataset/ETHPy150Open SheffieldML/GPy/GPy/core/gp.py/GP.log_predictive_density_sampling