Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. Values(Wind) = {Weak, Strong}
  2. S = {D4, D5, D6, D10, D14}
  3. S = [3+, 2—] S_Weak = [3+, 0—] S_Strong = [0+, 2—]
  4.  
  5. Entropy(S) = Entropy[3+, 2—]
  6. = — (2/5).log2 (2/5) — (3/5).log2 (3/5) = 0.970
  7.  
  8. Similarly,
  9. Entropy(S_Weak) = Entropy[3+, 0—] = 0
  10. Entropy(S_Strong) = Entropy[0+, 2—] = 0
  11.  
  12. Information Gain(S, Wind) = Entropy(S) — (3/5).Entropy(S_Weak) — (2/5).Entropy(S_Strong)
  13. = 0.970 — 0 - 0
  14. = 0.970
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement