class_docstr: Basic tests for Kernel function 
class_docstr_tok: ["Basic","tests","for","Kernel","function"]
docstr: Tests for the combined kernel. 
docstr_tok: ["Tests","for","the","combined","kernel","."]
code: def test_comb_kernel(self):
      """Tests for the combined kernel."""
      self.report("Tests for the Combined kernel.")
      kern_se = SEKernel(
          self.data_1.shape[1], self.se_scale, self.dim_bandwidths
      )
      kern_po = PolyKernel(
          self.data_1.shape[1],
          self.poly_order,
          self.poly_scale,
          self.poly_dim_scalings,
      )
      kern = CoordinateProductKernel(
          self.data_1.shape[0],
          self.com_scale,
          [kern_se, kern_po],
          [[0, 1], [0, 1]],
      )
      K11 = kern(self.data_1)
      K22 = kern(self.data_2)
      K12 = kern(self.data_1, self.data_2)
      assert np.linalg.norm(self.true_comb_11 - K11) < 1e-10
      assert np.linalg.norm(self.true_comb_22 - K22) < 1e-10
      assert np.linalg.norm(self.true_comb_12 - K12) < 1e-10
  
file_path: dragonfly/dragonfly/gp/unittest_kernel.py
imports: from __future__ import absolute_import
  from __future__ import division
  import numpy
  from .kernel import Kernel, SEKernel, MaternKernel, PolyKernel, CoordinateProductKernel
  from ..utils.ancillary_utils import dicts_are_equal
  from ..utils.base_test_class import BaseTestClass, execute_tests
label_desc: Use image node_id 7 for calling the KernelBasicTestCase obj's underlying member method code with example usage: obj.test_comb_kernel() without return types