Machine Learning, Decision Tree, Id3 Algorithm, Covid-19.
homogenous(similar) and will be 1 if the target column has equal number values for both the classes. We denote our dataset as S, entropy is calculated as: Entropy(S) = - ∑ pᵢ * log₂(pᵢ) ; i = 1 to n where, n is the total number of classes in the target column (in our case n = 2 i.e YES and NO) pᵢ