remove unnecessary ravel
update docstring for hinge_loss