← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 6537.d · 生成模型:GPT-6

采样站点名标识随机选择

理解等级:中级

pyro.sample用名称标识一次模型执行中的随机站点,推断工具借此记录或约束对应变量。循环中应使用带索引的唯一名称,避免多个随机选择意外共享同名站点。名称是计算接口,不能凭名称自动赋予变量真实因果身份。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      In Pyro, best practice is to implement random processes as functions. Further, use the function pyro.sample to generate, rather than using the sample method on distribution objects. We could rewrite the preceding random_process code (listing 2.7) as follows.

    参考来源

    - 位置:《Causal AI》第02章《概率生成建模入门》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Causal AI/_epub-src/OEBPS/Text/chapter-2.xhtml) - 结论依据:摘录中关于采样站点名标识随机选择的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:In Pyro, best practice is to implement random processes as functions. Further, use the function pyro.sample to generate, rather than using the sample method on distribution objects. We could rewrite the preceding random_process code (listing 2.7) as follows.