Calculate the Entropy Impurity for a list of samples.

def entropy(s):
    """Calculate the Entropy Impurity for a list of samples.
    """
    return -sum(
        p*np.log(p) for i in range(len(s)) for p in [prop(s[i], s)]
    )