numpy 2 arrays equal 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