def negative_gradient(self, y, pred, k=0, **kwargs):
        return y - np.nan_to_num(np.exp(pred[:, k] -
                                        logsumexp(pred, axis=1)))
Simulate a successful login
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/ensemble/gradient_boosting.py/MultinomialDeviance.negative_gradient--crossover with--dataset/ETHPy150Open amarandon/smeuhsocial/apps/django_openid/tests/consumer_tests.py/CookieConsumerTest.testLogin