Misleading Info on Entropy Formula for Decision Tree

Hello @awidianto,

  1. mathematically, \lim_{p \to 0} p\log(p) = 0
  2. computationally, we cannot calculate 0log(0) because log(0) is inf, so usually we add a very small number like 10e-7 to inside the log so that we are instead calculating 0 * log(0+10e-7) which will also gives you a 0.
  3. if we don’t add that small constant, we can use the if-else statement.

Cheers,
Raymond