Commit 5624dc3e authored by Philipp Arras's avatar Philipp Arras

Start cg from 0

parent a9652e2c
Pipeline #52336 passed with stages
in 8 minutes and 31 seconds
......@@ -63,8 +63,7 @@ class SamplingEnabler(EndomorphicOperator):
s = self._prior.draw_sample(from_inverse=True)
sp = self._prior(s)
nj = self._likelihood.draw_sample()
energy = QuadraticEnergy(s, self._op, sp + nj,
_grad=self._likelihood(s) - nj)
energy = QuadraticEnergy(0*s, self._op, sp + nj)
inverter = ConjugateGradient(self._ic)
if self._approximation is not None:
energy, convergence = inverter(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment