Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Third output of function 'predict_given_factorizations' in mgpr.py #24

Closed
jastfkjg opened this issue Mar 9, 2019 · 2 comments
Closed

Comments

@jastfkjg
Copy link

jastfkjg commented Mar 9, 2019

Hi!

I try to read the code, but I can't understand what the third output from predict_given_factorizations in mgpr.py.

It's noted as inv(s) * input-ouputcovariance, but can you give more explanation about that and why
do we need that.

Thanks!

@kyr-pol
Copy link
Collaborator

kyr-pol commented Mar 11, 2019

Hi @jastfkjg,

For a lot of the core functions we are following closely the matlab implementation (found here) so the references to the original research are directly applicable. The most comprehensive is Efficient Reinforcement Learning using Gaussian Processes, the PhD thesis by Marc Deisenroth.

The input - output covariance, cov[x, f(x) | m, S], refers to the covariance between an input to the GP model, x, and the model's output f(x). It's needed for long term predictions, and it's used in our pilco.propagate function, and the corresponding Matlab function ( pred.m and propagate.m). If you want to see the math in more detail, see paragraph 2.3.3 of the thesis I linked above, with the final equation being 2.70.

@jastfkjg
Copy link
Author

I will try to figure it out, Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants