知识卡片

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

指数尺度要关注数值稳定

理解等级:中级

对任意网络输出取exp可保证Normal尺度为正,但大值可能溢出、很小值可能接近零。数学有效约束与数值稳定是两项要求;复现时应检查尺度范围及有限性,不因采用正值变换就默认训练始终稳定。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      z_scale = torch.exp(self.fc22(hidden)) #10 return z_loc, z_scale #1 The encoder is an instance of a PyTorch module. #2 The input image is 28 × 28 = 784 pixels. #3 The digit dimension is 10. #4 In the encoder, we’ll only use the softplus transform (activation function). #5 The linear transform fc1 combines with the softplus to map the 784-dimensional pixel vector, 10-dimensional digit label vector,

    参考来源

    - 位置:《Causal AI》第05章《连接因果与深度学习》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Causal AI/_epub-src/OEBPS/Text/chapter-5.xhtml) - 结论依据:摘录中关于指数尺度要关注数值稳定的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:z_scale = torch.exp(self.fc22(hidden)) #10 return z_loc, z_scale #1 The encoder is an instance of a PyTorch module. #2 The input image is 28 × 28 = 784 pixels. #3 The digit dimension is 10. #4 In the encoder, we’ll only use the softplus transform (activation function). #5 The linear transform fc1 combines with the softplus to map the 784-dimensional pixel vector, 10-dimensional digit label vector,