知识卡片
对数概率保留数值尺度
Pyro分布对象的log_prob返回某取值的对数质量或对数密度,连续分布时不能把它当作对数单点概率。用指数可还原相应数值,但浮点计算有精度限制;批量计算还需检查样本维度与事件维度。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 概率生成建模入门
原书出处 · 1 处
- · 查看原书依据
log_prob method will provide the natural log of the probability value, because log probabilities have computational advantages over regular probabilities. Exponentiating (taking e l where l is the log probability) converts back to the probability scale. For example, we can create a Bernoulli distribution object with a parameter value of 0.4.
参考来源
- 位置:《Causal AI》第02章《概率生成建模入门》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Causal AI/_epub-src/OEBPS/Text/chapter-2.xhtml)
- 结论依据:摘录中关于对数概率保留数值尺度的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:log_prob method will provide the natural log of the probability value, because log probabilities have computational advantages over regular probabilities. Exponentiating (taking e l where l is the log probability) converts back to the probability scale. For example, we can create a Bernoulli distribution object with a parameter value of 0.4.