Cosmit: move log_loss.