知识卡片
do操作与普通赋值有区别
概率程序中的do针对命名随机站点替换其下游使用值,保留其余程序机制;不能把函数返回值事后改掉当成已经干预。Pyro还保留额外追踪语义,具体行为需按版本接口核验;书中“本质替换一行”是直觉说明。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 干预与因果效应
原书出处 · 1 处
- · 查看原书依据
The intervention operator in Pyro works by finding calls to pyro.sample, and replacing those calls with an assignment to the intervention value. For example, the online game model had the following line:
参考来源
- 位置:《Causal AI》第07章《干预与因果效应》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Causal AI/_epub-src/OEBPS/Text/chapter-7.xhtml)
- 结论依据:摘录中关于do操作与普通赋值有区别的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:The intervention operator in Pyro works by finding calls to pyro.sample, and replacing those calls with an assignment to the intervention value. For example, the online game model had the following line: