outlook=?

humidity=?

wind=?

yes

yes

no

yes

no

yes

sunny

overcast

rain

high

normal

strong

weak

1

2

3

ID=1

GAIN(outlook)=0.24

GAIN(temperature)=0.02

GAIN(humidity)=0.15

GAIN(wind)=0.04

outlook信息增益最大,选择其为划分节点

ID=2

GAIN(temperature)=0.57

GAIN(humidity)=0.97

GAIN(wind)=0.01

humidity信息增益最大,选择其为划分节点

ID=3

GAIN(temperature)=0.01

GAIN(humidity)=0.01

GAIN(wind)=0.97

wind信息增益最大,选择其为划分节点

决策树

决策树

2019-12-30 00:07:39 0 35
这里是评论

相关推荐