I am trying to compare two 1d numpy arrays for mismatch as follows. I have this working with partial success.
import numpy as np
a= np.array([0,1,2,3,4,13])
b= np.array([0,1,2,3,4,10,11,12])
mis = max( np.sum(~np.isin(b,a)), np.sum(~np.isin(a,b)))
print(mis)
output: 3
expected output : 4 ( 13,10,11,12 are mismatches)