add inverted hamming loss