FIX only add if loss nonzero. Important for latent SVM, where psi(x,h) != psi(x, h_hat) but y == y_hat.
FIX only add if loss nonzero. Important for latent SVM, where psi(x,h) != psi(x, h_hat) but y == y_hat.

d-mittal/pystruct,amueller/pystruct,massmutual/pystruct,amueller/pystruct,pystruct/pystruct,massmutual/pystruct,pystruct/pystruct,wattlebird/pystruct,wattlebird/pystruct,d-mittal/pystruct