CH4 Classification




1-4/7*4/7-3/7*3/7 = 0.4897959

1-2/5*2/5-3/5*3/5 = 0.48

GINI = (7/12) * 0.4898 + (5/12) * 0.48 = 0.486

1-1/5*1/5-4/5*4/5 = 0.32

1-5/7*5/7-2/7*2/7= 0.4081633

GINI = (5/12) * 0.32 + (7/12) * 0.408 = 0.37


4/20*(1-1/4*1/4-3/4*3/4) + 8/20*(0) + 8/20*(1-1/8*1/8-7/8*7/8) = 0.1625




你可能感兴趣的:(CH4 Classification)