how to compare 2 numpy arrays in python code example
Example 1: check if numpy arrays are equal
(A==B).all()
Example 2: np.array_equal
# np.array_equal checks whether two arrays have the same
# shape and all elements values
(A==B).all()
# np.array_equal checks whether two arrays have the same
# shape and all elements values