class_docstr: Compare gp.MarginalKron to gp.Marginal.
class_docstr_tok: ["Compare","gp.MarginalKron","to","gp.Marginal","."]
code: def testMarginalKronvsMarginal(self):
      with pm.Model() as kron_model:
          kron_gp = pm.gp.MarginalKron(
              mean_func=self.mean, cov_funcs=self.cov_funcs
          )
          f = kron_gp.marginal_likelihood(
              "f", self.Xs, self.y, sigma=self.sigma
          )
          p = kron_gp.conditional("p", self.Xnew)
      kron_logp = kron_model.compile_logp()({"p": self.pnew})
      npt.assert_allclose(kron_logp, self.logp, atol=0, rtol=1e-2)
  
imports: from functools import reduce
  from operator import add
  import numpy
  import numpy.testing
  import pytest
  import pymc
  from pymc.math import cartesian
label_desc: Use image node_id 3 for calling the TestMarginalKron obj's underlying member method code with example usage: obj.testMarginalKronvsMarginal() without return types