pymc-devs / pymc-experimental

https://pymc-experimental.readthedocs.io
Other
77 stars 49 forks source link

Blackjax SMC from pymc models #267

Closed ciguaran closed 10 months ago

ciguaran commented 10 months ago

Allows to sample Pymc's models using Blackjax's Sequential Monte Carlo implementations. Apart from getting a Jax-based implementation for Blackjax, this PR allows for using HMC and NUTS as kernels, which aren't available in the existing PyMC implementation of SMC. Moreover, diagnosis are exposed and stored in the resulting arviz.InferenceData

In order to sample using BJ SMC, we need

ciguaran commented 10 months ago

@junpenglao it seems that blackjax is not included in windows-environment-test.yml although is present in environment-test.yml do you know the reason for that?

ricardoV94 commented 10 months ago

@ciguaran because JAX isn't/wasn't compatible with Windows

ciguaran commented 10 months ago

@ciguaran because JAX isn't/wasn't compatible with Windows

gotcha, it seems they have an experimental version for windows, I've added it in the reqs to see what happens, otherwise we can remove the test from the windows suite if you agree @ricardoV94

jessegrabowski commented 10 months ago

Can you add a notebook example showing how to use this?

aloctavodia commented 10 months ago

thanks @ciguaran!