Added hamming loss for each iteration in debug string.