consider
outlook temperature humidity wind playball
sunny hot high weak no
sunny hot high strong no
overcast hot high weak yes
rain mild high weak yes
rain cool normal weak yes
rain cool normal strong no
overcast cool normal strong yes
sunny mild high weak no
sunny cool normal weak yes
rain mild normal weak yes
sunny mild normal strong yes
overcast mild high strong yes
outlook
/ | \
sunny / | \rainy
/ overcast \
/ | \
/ | \
/ yes \
humidity wind
/ \ / \
high / \normal weak/ \strong
/ \ / \
/ \ / \
consider we want add next node.for example temperature.we need to calculate info gain,for example for
high.how to calculate information gain and entropy?
Comments
Leave a comment