Closed computbiolgeek closed 2 years ago
Thanks for reporting. What versions of pymc and aesara are you using?
Thanks for the reply. My PyMC and aesara version are
pymc 4.1.3
aesara 2.7.7
Instead of m_censored.logp
you should call m_censored.compile_logp()
Do you want to send a PR to update and rerun the notebook @computbiolgeek?
Changing
logp_fn = m.logp
logp_censored_fn = m_censored.logp
to
logp_fn = m.compile_logp()
logp_censored_fn = m_censored.compile_logp()
did resolve the error. Thank you so much!
I typed up everything from scratch and did not clone the notebook. Let me know if a PR is still needed. Thanks!
I confirm the code in the notebook still needs to be updated
Bayesian regression with truncated or censored data: Notebook url:
Issue description
Running the following chunk of code in the corresponding notebook
gave a TypeError
Expected output
The figure below the above chunk of code, as shown in the notebook.
Proposed solution
No solution yet. Looked the signature of
m.logp
, which suggests that a list should be passed as an argument, but had no idea how to achieve that.