numpy array equal elements code example
Example 1: check if numpy arrays are equal
(A==B).all()
Example 2: numpy array_equal
numpy.array_equal(array1, array2)
True if two arrays have the same shape and elements, False otherwise.
(A==B).all()
numpy.array_equal(array1, array2)
True if two arrays have the same shape and elements, False otherwise.