Skip to content

Commit 8983d53

Browse files
committed
fix GP prior non-spatial variance
torch needs stddev, not variance
1 parent 027b293 commit 8983d53

2 files changed

Lines changed: 24 additions & 24 deletions

File tree

docs/notebooks/xenium_chromium_informed.ipynb

Lines changed: 23 additions & 23 deletions
Large diffs are not rendered by default.

src/mofaflex/_core/priors/gaussian_process/gaussian_process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def model(
336336
zip(
337337
self._names,
338338
torch.split(
339-
pyro.sample(f"{id}_z", dist.Normal(f, 1 - self._gp.outputscale)),
339+
pyro.sample(f"{id}_z", dist.Normal(f, torch.sqrt(1 - self._gp.outputscale))),
340340
tuple(gp_covariates[g].shape[0] for g in gnames),
341341
dim=-2,
342342
),

0 commit comments

Comments
 (0)