Open ghost opened 6 years ago
I think you are right. We are always happy for any help. The fix would need to go to a little helper (e.g. _predict_mean_jacobian(self, Xnew, kern)
) for the core GP
class. If you want to give it a try, please include some tests testing the predictive gradients for different mappings.
Hi,
I found that when calling predictive_gradients for a gp model with non trivial mean, the gradient returned for mean does not include the contribute of gradient from the mean function. To fix it, I believe simply add the gradient of mean to the result is correct. Here is an example where the I use linear mean function, and gradient of predicted means are about 0.