知识卡片

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

不可达输入仍可能影响干预

理解等级:高级

观测模型中不可能出现的父组合,在完整函数表里仍需定义。任意补值或许不改变当前观测分布,但新干预若使这些组合可达,就会依赖补出的机制。应记录定义范围与扩展规则,不能把所有零概率处补值都称无影响。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      Unfortunately, we can’t leave the impossible values blank when we specify a Tabular-CPD, so in the following code, we’ll need to assign arbitrary values to these elements. Listing 6.5 Implementation of Player Second Choice assignment function in pgmpy from pgmpy.factors.discrete.CPD import TabularCPD f_second_choice = TabularCPD( variable='Player Second Choice', variable_card=3, values=[ [1,0,0,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0], #1 [0,1,0,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1], #1 [0,0,1,0,0,1,0,0,1,0,1,0,1,0,0,0,0,0] #1 ], evidence=[ 'Strategy', 'Host Door Selection', 'Player First Choice'

    参考来源

    - 位置:《Causal AI》第06章《结构因果模型》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Causal AI/_epub-src/OEBPS/Text/chapter-6.xhtml) - 结论依据:摘录中关于不可达输入仍可能影响干预的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:Unfortunately, we can’t leave the impossible values blank when we specify a Tabular-CPD, so in the following code, we’ll need to assign arbitrary values to these elements. Listing 6.5 Implementation of Player Second Choice assignment function in pgmpy from pgmpy.factors.discrete.CPD import TabularCPD f_second_choice = TabularCPD( variable='Player Second Choice', variable_card=3, values=[ [1,0,0,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0], #1 [0,1,0,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1], #1 [0,0,1,0,0,1,0,0,1,0,1,0,1,0,0,0,0,0] #1 ], evidence=[ 'Strategy', 'Host Door Selection', 'Player First Choice'