我在尝试运行关于张量流概率的贝叶斯逻辑回归示例时遇到了一些问题,如An introduction to probabilistic programming, now available in TensorFlow Probability所示。在
如果我只是在站点上运行代码,就会出现以下错误:
Traceback (most recent call last):
File "<input>", line 75, in <module>
TypeError: make_simple_step_size_update_policy() missing 1 required positional argument: 'num_adaptation_steps'
当我指定num_adaptation_steps=5时,我得到以下错误:
^{pr2}$我不知道我做错了什么,任何帮助都将不胜感激。谢谢!!在
第2章现行Colab中的挑战者代码应该适用:
https://colab.sandbox.google.com/github/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/blob/master/Chapter2_MorePyMC/Ch2_MorePyMC_TFP.ipynb#scrollTo=oHU-MbPxs8iL
我刚刚注意到,这一章中前面的HMC示例缺少num_adaptation_步骤,所以我将很快做一个PR来解决这个问题。或者你也可以这么做。在
谢谢 迈克
相关问题 更多 >
编程相关推荐