Decision Tree, Entropy, Information Gain, Gini Index.
the splits is calculated using it as a base. Note: putting in log(0) throws an error. However mathematically we can use the limit. Normally we just don’t include the pj=0 case in the calculation. However, I have included just to show the complete calculation. By convention 0 log 0 = 0, since y log