log loss, gradient should be divided by number of training instances