'Prior' object has no attribute '_type' #81
Unanswered
MauricioGS99
asked this question in
Q&A
Replies: 1 comment
-
Hi @MauricioGS99 try upgrading to 2.4.0. Sorry I missed this post. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have re-written my code to the new version of JAXNS as follows:
from jaxns import Prior
def patient_1_priors() -> PriorModelGen:
p=yield Prior(tfp.distributions.Bernoulli(probs=0.7),name='disease')
return p
def patient_1(p):
disease = p
treatment = tfp.distributions.Bernoulli(probs=0.4,name='treatment').sample()
list_variables=[disease,treatment]
list_variables_no_treatment=[disease]
but when I do:
model_patient_1 = Model(prior_model=patient_1_priors,log_likelihood=patient_1)
I receive:
'Prior' object has no attribute '_type'
Any ideas why?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions