SyntaxFix
Write A Post
Hire A Developer
Questions
Now use np.array_equal. From documentation:
np.array_equal
np.array_equal([1, 2], [1, 2]) True np.array_equal(np.array([1, 2]), np.array([1, 2])) True np.array_equal([1, 2], [1, 2, 3]) False np.array_equal([1, 2], [1, 4]) False