numpyro icon indicating copy to clipboard operation
numpyro copied to clipboard

Feature Request: Guidelines on implementing Sparse GP in Numpyro

Open LysSanzMoreta opened this issue 5 years ago • 3 comments

Hi!

I would like to request some guidelines on how to implement SparseGP (with SVI) in Numpyro as already included in Pyro. Currently there is only a simple Gaussian Process implementation in Numpyro .

Thank you very much in advance :)

LysSanzMoreta avatar Nov 27 '20 12:11 LysSanzMoreta

The Pyro module pyro.contrib.gp is pretty stable and there are already a couple of examples (deep kernel learning, gplvm) of doing SVI inference for sparse GP models in Pyro. I would like to extend the feature request for having an example of deep sparse GP in NumPyro, which isn't duplicated with the current examples on Pyro and illustrates how to use flax_module primitive. Please see the following references as a guideline for an implementation:

fehiepsi avatar Nov 28 '20 04:11 fehiepsi

Hi @LysSanzMoreta, I have an example of how one could do SparseGPs (the classic variational free energy version).

You can find the demo script here as well as the jupyter notebook here (colab-able). I tried to faithfully copy the pyro implementation. I hope it helps someone!

I'm currently working on the Stochastic Variational GP implementation (pyro) right now. But it's a bit more involved so it will take me some time.

jejjohnson avatar Mar 24 '21 12:03 jejjohnson

@jejjohnson Thank you very much! I also made a little implementation in pyro ( I switch back and forth heheh), your example will be very useful to check if I am on the right track :)

LysSanzMoreta avatar Mar 25 '21 10:03 LysSanzMoreta