from math import log

def entropy_set(setps):
    summ = sum(setps)
    entp = 0
    for s in setps:
        p = (s/float(summ))
        entp += -(p)*log(p,2)
    return entp

b1cf53fe1cf1a49ec4e8f57a6e3151507a07cb90
<mask token>

<mask token>


def entropy_set(setps):
    summ = sum(setps)
    entp = 0
    for s in setps:
        p = s / float(summ)
        entp += -p * log(p, 2)
    return entp

from math import log


def entropy_set(setps):
    summ = sum(setps)
    entp = 0
    for s in setps:
        p = s / float(summ)
        entp += -p * log(p, 2)
    return entp

from math import log

def entropy_set(setps):
    summ = sum(setps)
    entp = 0
    for s in setps:
        p = (s/float(summ))
        entp += -(p)*log(p,2)
    return entp
