def negentropy(self, E_ln_lambda=None, E_lambda=None, E_beta=None, E_ln_beta=None):
        if E_ln_lambda is None:
            E_ln_lambda = self.expected_log_lambda()

        if E_lambda is None:
            E_lambda = self.expected_lambda()

        if E_ln_beta is None:
            E_ln_beta = np.log(self.beta) * np.ones_like(E_ln_lambda)

        if E_beta is None:
            E_beta = self.beta * np.ones_like(E_lambda)

        # Make sure everything is the same shape
        alpha = self.alpha * np.ones_like(E_ln_lambda)


        H =  alpha * E_ln_beta
        H += -gammaln(alpha)
        H += (alpha - 1.0) * E_ln_lambda
        H += -E_beta * E_lambda

        return H
Transform a 'String or List' in List
dataset/ETHPy150Open slinderman/pyhawkes/pyhawkes/internals/distributions.py/Gamma.negentropy--crossover with--dataset/ETHPy150Open winpython/winpython/make.py/transform_in_list