Open fonnesbeck opened 11 years ago
Hey @fonnesbeck! I think my original intention was to use the draw_from_prior
method for something (but, it's in the MCMC
class anyways), and have since changed my mind. It's an artifact now. I'll remove it when I touch this chapter (and other chapters) again.
Having a peek through Chapter 3, I notice that you instantiate your
MCMC
objects in a two-step process:There is really no need to explicitly create a
Model
object at all --MCMC
will do this for you if you pass it the variables:In fact, typically I just pass a call to
vars
(orlocals
) whichMCMC
will sift through to look for PyMC objects in the local namespace:This is particularly useful if you encapsulate your model in a function that returns
vars
orlocals
.In any case, its just one fewer step in the PyMC modeling process to have to think about.