Entropy for [versicolor, setosa, setosa, setosa]

For the example of [versicolor, setosa, setosa, setosa] in the Section "Entropy", the entropy H was calculated as H(L) = -(1 / 2) * log(1 / 4, 2) - (1 / 2) * log(3 / 4, 2) = 2 - (1 / 2) * log(3, 2). This is very confusing because based on the definitions, H(L) should be -(1 / 4) * log(1 / 4, 2) - (3 / 4) * log(3 / 4, 2) = 2 - (3 / 4) * log(3, 2). Am I the only one that has this confusion here? Any help will be appreciated!

Comments (1)