如何不给任何值作为观测值pymc3模型

时间:2018-10-08 05:34:46

标签: statistics bayesian pymc3

我有一个pymc3模型,可以进行MAP估算...

    with pm3.Model() as last:
    quality_precision = pm3.Gamma('quality_precision', 2, 1)
    ability = pm3.Normal(name="ability", mu=0, sd=10)
    quality = pm3.Normal(name='quality', mu=ability, sd=1 / np.sqrt(quality_precision))
    reviewer_bias = pm3.Normal(name='reviewer_bias', mu=np.zeros(3), sd=np.ones(3) * 5, shape=(3,))
    iscorrect = pm3.Binomial('iscorrect', n=1,
                             p=sigmoid((np.ones(3)*quality)+reviewer_bias),
                             observed=ob)

    map_estimate = pm3.find_MAP()

对于该模型,我以[x,x,x]的模式给出观测值,其中x为1或0。如何给出缺少值的观测值? 例如:[1,None,0]?

0 个答案:

没有答案