it checks the numerical gradient against analytical gradient

  
      en.wikipedia.org
  
  
    

Numerical differentiation 41

In numerical analysis, numerical differentiation describes algorithms for estimating the derivative of a mathematical function or function subroutine using values of the function and perhaps other knowledge about the function.   The simplest method is to use finite difference approximations.