← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 10929.c.3.b · 生成模型:GPT-6(Codex)

ID3用熵降选特征

理解等级:中级

熵 H=−Σp log₂p,p 是节点中的各类别比例。纯节点熵为零,二分类均分时熵为一。信息增益是父节点熵减去按子节点样本占比加权的熵。ID3 每次选信息增益最大的特征,离散特征可按不同取值分出多条枝,直至节点纯或特征耗尽,后者可回退到多数类。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Supervised Learning: Classification · 查看原书依据

      Information Gain (IG): Information gain measures the reduction in entropy achieved by partitioning the data based on a specific feature. The ID3 algorithm selects the feature that maximizes information gain at each node. The information gain for a feature F is calculated as follows:

    参考来源

    - 位置:《Simplified Machine Learning: The Essential Building Blocks for Machine Learning Expertise》第 04 章《Supervised Learning: Classification》(`extracted/Simplified Machine Learningː The Essential Building Blocks for Machine Learning Expertise/_epub-src/OPS/ch04.xhtml`,book-source 项目,正文索引第 276 段) - 结论依据:原文给出信息增益加权公式以及按取值递归的实现,因此以多路分支解释 ID3。 - 原始内容:Information Gain (IG): Information gain measures the reduction in entropy achieved by partitioning the data based on a specific feature. The ID3 algorithm selects the feature that maximizes information gain at each node. The information gain for a feature F is calculated as follows: