Clarification on how particles (eg. in SMC and SVGD) should be handled. #464
Closed
antotocar34
started this conversation in
General
Replies: 2 comments 4 replies
-
I'm not in front of my computer right now, what's the output of |
Beta Was this translation helpful? Give feedback.
4 replies
-
I've added docs in SMCState |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In
smc/base.py
, theparticles
object is typed to be aPyTree
.However, the following line assumes a more specific structure
blackjax/blackjax/smc/base.py
Line 111 in 25eee35
Specifically, the above line assume that
particles
has to have the following structure (let's say you're sampling a univariate distribution):Unless I'm missing something, this does not generalize to
particles
that look like:Perhaps a workaround would be to type
particles
asList[PyTree]
?The following functions could convert the particles to
vmap
-able arrays with the following functionsBeta Was this translation helpful? Give feedback.
All reactions