I have 2 np.array arrays, both consist of 0 and 1. It is necessary to compare them and count the number of inconsistencies. I tried to do this:
unique, counts = np.unique(X2==X3, return_counts=True) print(dict(zip(unique, counts))) But as a result, it gives about 300 million true and false values, although the length of both is 25000