I need to compare two arrays made only by 0 and 1:
A = [0,1,0,0,1]
B = [1,1,0,0,1]
I want to get the number of elements that aren't equals and the percentage, i tried this code:
print(numpy.mean(A == B))
but sometimes i get 0 when some elements are equal...