def entropy(self, alpha):
        """
        Compute the differential entropy of the dirichlet distribution.

        Parameters
        ----------
        %(_dirichlet_doc_default_callparams)s

        Returns
        -------
        h : scalar
            Entropy of the Dirichlet distribution

        """

        alpha = _dirichlet_check_parameters(alpha)

        alpha0 = np.sum(alpha)
        lnB = _lnB(alpha)
        K = alpha.shape[0]

        out = lnB + (alpha0 - K) * scipy.special.psi(alpha0) - np.sum(
            (1 - alpha) * scipy.special.psi(alpha))
        return _squeeze_output(out)
dataset/ETHPy150Open scipy/scipy/scipy/stats/_multivariate.py/dirichlet_gen.entropy/swapped operands of `-`