Weather decision tree source code
2016-08-23
1 0 0
no vote
Other
Earn points
Information Gain method for constructing decision tree.
Calculate the entropy of branch
"Sunny" branch with 2 example 3 a counterexample, it expects the volume of information required for:M (sunny) =-2/5*Log2 (2/5), -3/5*Log2 (three-fifths)
=0. 971 bits
"Cloudy" branch, containing 4 0 a counterexample:
M (for cloudy days) =0
"Rain" branch, containing 3 example 2 a counterexample:
M (for rain), =-3/5*Log2 (3/5) -2/5*Log2 (two-fifths)
c
源代码
天气
决策
Related Source Codes
PClite
0
0
no vote
generic embeded FTP Client
0
0
no vote
UDP Test Demo
0
0
no vote
TMS320F28335 DSP transmits data to EEPROM through
0
0
no vote
TMS320F28335 CAN communication source code
0
0
no vote
No comment