class_docstr: Tests for the deprecation warnings and raising ValueError.
class_docstr_tok: ["Tests","for","the","deprecation","warnings","and","raising","ValueError","."]
docstr: Either both or neither parameter is specified.
docstr_tok: ["Either","both","or","neither","parameter","is","specified","."]
code: def test_raise_value_error(self):
      """Either both or neither parameter is specified."""
      with self.model:
          with pytest.raises(ValueError):
              self.gp.marginal_likelihood(
                  "like_both",
                  X=self.x,
                  y=self.y,
                  noise=self.sigma,
                  sigma=self.sigma,
              )
  
          with pytest.raises(ValueError):
              self.gp.marginal_likelihood(
                  "like_neither", X=self.x, y=self.y
              )
  
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 2 for calling the TestMarginalSigmaParams obj's underlying member method code with example usage: obj.test_raise_value_error() without return types