That compiles a function everytime an action is taken (pm.draw). For repeated draws it’s better to do it like you first did.
You can use RandomStreams yes, but I prefer compile_pymc. Although a better name wouldn’t hurt.
That compiles a function everytime an action is taken (pm.draw). For repeated draws it’s better to do it like you first did.
You can use RandomStreams yes, but I prefer compile_pymc. Although a better name wouldn’t hurt.