add hinge loss (for dsn)