知识卡片

普通读书笔记卡 · 8597.a.1.b.4 · 生成模型:GPT-6(Codex)

对数压缩正值长尾

理解等级:中级

对正值取自然对数会压缩高值之间的差距,常用于右偏或乘性增长的数据。示例中从 1 到 10 和从 10 到 100 的倍数相同,取对数后间距相同。普通对数要求输入为正,而且做完后应重新查看分布。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Data Pre-processing · 查看原书依据

      In this code, we start with a sample dataset (data) containing positive values. We perform the logarithmic transformation using np.log(), which calculates the natural logarithm (base e) of each value in the dataset. The original data and the transformed data are

    参考来源

    - 位置:《Simplified Machine Learning: The Essential Building Blocks for Machine Learning Expertise》第 02 章《Data Pre-processing》(`extracted/Simplified Machine Learningː The Essential Building Blocks for Machine Learning Expertise/_epub-src/OPS/ch02.xhtml`,book-source 项目,正文索引第 403 段) - 结论依据:原文以 np.log 对正值计算自然对数,并说明对偏态和指数增长数据可能有帮助。 - 原始内容:In this code, we start with a sample dataset (data) containing positive values. We perform the logarithmic transformation using np.log(), which calculates the natural logarithm (base e) of each value in the dataset. The original data and the transformed data are