docstr: ...Test that ModelHawkesExpKernLeastSq gradient is consistent
  with loss
docstr_tok: ["...","Test","that","ModelHawkesExpKernLeastSq","gradient","is","consistent","with","loss"]
code: def test_model_hawkes_least_sq_grad(self):
      """...Test that ModelHawkesExpKernLeastSq gradient is consistent
      with loss
      """
  
      for model in [self.model, self.model_list]:
          self.assertLess(
              check_grad(model.loss, model.grad, self.coeffs), 1e-5
          )
  
file_path: tick/tick/hawkes/model/tests/model_hawkes_expkern_leastsq_test.py
imports: import pickle
  import unittest
  import numpy
  from scipy.optimize import check_grad
  from tick.hawkes.model import ModelHawkesExpKernLeastSq
  from tick.hawkes.model.tests.model_hawkes_test_utils import hawkes_exp_kernel_intensities, hawkes_least_square_error
label_desc: Use image node_id 5 for calling the Test obj's underlying member method code with example usage: obj.test_model_hawkes_least_sq_grad() without return types