Sample weight support for hinge loss