Something's fishy with the handling of fixed parameters in PymcSampler.
PymcSampler.initialize stores a reduced x0:
|
x0 = problem.get_reduced_vector(x0) |
Whereas PymcSampler.sample expects a full x0:
|
for x_name, val in zip(problem.x_names, self.x0) |
Not sure about the impact, but seems like this might have quite unintended consequences.
Would be great if somebody could look into that, fix it, and document the expected length of PymcSampler.x0
To reproduce: add strict=True to
|
for x_name, val in zip(problem.x_names, self.x0) |
and run
test/sample/test_sample.py::test_pipeline[Pymc-rosenbrock]
Something's fishy with the handling of fixed parameters in
PymcSampler.PymcSampler.initializestores a reducedx0:pyPESTO/pypesto/sample/pymc.py
Line 184 in fd976b7
Whereas
PymcSampler.sampleexpects a fullx0:pyPESTO/pypesto/sample/pymc.py
Line 211 in fd976b7
Not sure about the impact, but seems like this might have quite unintended consequences.
Would be great if somebody could look into that, fix it, and document the expected length of
PymcSampler.x0To reproduce: add
strict=TruetopyPESTO/pypesto/sample/pymc.py
Line 211 in fd976b7
test/sample/test_sample.py::test_pipeline[Pymc-rosenbrock]