Happy to see that you re-use for the hamming loss of sklearn. :-)