def entropy(x):
    if x == 0.0 or x == 1.0:
        return float("-inf")
    else:
        return -(x * lg(x) + (1. - x) * lg(1. - x))
dataset/ETHPy150Open Pinafore/qb/util/inspect_features.py/entropy/original