我使用以下代码创建一个使用PyMC3的简单模型:
import pymc3 as pm
import theano.tensor as tt
with pm.Model() as model:
p = pm.Uniform("freq_cheating", 0, 1)
p_skewed = pm.Deterministic("p_skewed", 0.5*p + 0.25)
yes_responses = pm.Binomial("number_cheaters", 100, p_skewed, observed= 50)
step = pm.Metropolis()
trace = pm.sample(25000, step=step)
burned_trace50 = trace[2500:]
是否可以将此模型绘制为DAG?
您的建议将不胜感激