Nor
unread,Dec 4, 2009, 11:17:15 AM12/4/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PyMC
Hi,
I am not sure that I quite understand what decorator to use for a
function that computes a logP based on a simple linear fit between
some observations (which are set for the whole run and do not vary)
and a model with depends in a deterministic way on some input
variables.
It seems that things more or less work wether I use the @data and
@stochastic decorator or just the @potential decorator.
It seems that using @potential is quite a bit faster, which might or
might not be a red herring.
Should one use the @data and or @observed decorators in this case?
What should one really be using in this case?
The function is:
def D
(value=params,z=z,ltime=ltime,ltburst=ltburst,brst1m=brst1m,Av=Av):
...
...
return logP
where params is a structure containing a bunch of values to create
models as well as observed data to compare the model-derived values
against. All of this is done in the ... part of the snippet above. The
parameters which are being explored are z,ltime,ltburst, brst1m and
Av.
Thanks
N