def negentropy(self, E_x=None, E_notx=None, E_ln_p=None, E_ln_notp=None):
        if E_x is None:
            E_x = self.expected_x()

        if E_notx is None:
            E_notx = self.expected_notx()

        if E_ln_p is None:
            E_ln_p = np.log(self.p)

        if E_ln_notp is None:
            E_ln_notp = np.log(1.0 - self.p)

        H = E_x * E_ln_p + E_notx * E_ln_notp
        return H
Show pending notifications for a user.
dataset/ETHPy150Open slinderman/pyhawkes/pyhawkes/internals/distributions.py/Bernoulli.negentropy--crossover with--dataset/ETHPy150Open google/grr/grr/lib/console_utils.py/GetNotifications