Decision Tree 决策树

Supervised learning 有监督学习

Goal: To learn a classification model from the data that can be used to predict the classes of new cases.

A Decision Tree 决策树概念

A decision tree will include decision nodes and leaf nodes.

All current tree algorithms are all heuristic algorithms

Each path from the root to a leaf is a rule

A greedy Divide-n-conquer algorithm

Tree is constructed in a top-down recursive manner

Key: Which attribute to choose in order to branch

Objective: Reduce impurity or uncertainty in data

手动画决策树步骤公式

The Entropy Formula:


The Entropy of Attribute Ai:


The Information gained by selecting Ai to branch or to partition data:


Finally we choose the largest gain to split the the current tree

在求出拥有最大InformationGain的Attribute之后,将其作为root。 剩下的数据重复以上过程。

Quiz related:

1. The resulting decision tree will use a subset of the attributes in S

2. It's a recursive algorithm

3. It works in a depth-first fashion

4. It's complexity is nlog(n)

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 今日2017年3月3日,周五,阴历二月初六,天气晴。 我们生而为人,是上天的的馈赠,可生命生长、成...
    Echo的树洞阅读 3,280评论 0 0
  • 故 乡 的 秋作者:归去来兮 我的故乡是鄂西的一个边陲小镇,属典型的高山地区。即使在烈日炎炎的夏季,也...
    张冠不李戴阅读 3,421评论 0 6
  • 现在年轻人是不愿意当老师的,我认识一个三流大专出来的学生,一次聊天问我说怎么考教师资格证,我说你考那干嘛,又没啥用...
    根哥说教育阅读 4,256评论 0 0

友情链接更多精彩内容