June 2015
Beginner
348 pages
8h 44m
English
The assert_array_almost_equal() function raises an exception if two arrays are not equal up to a specified precision. The function checks whether the two arrays have the same shape. Then, the values of the arrays are compared element by element with the following:
|expected - actual| < 0.5 10-decimal
Read now
Unlock full access