Skip to content

Commit 424ece0

Browse files
pipmelarryshamalama
authored andcommitted
Fix link and typo in developer_guide.md
Fix link to `MH-sampler`'s `astep()` method.
1 parent 9fd90c0 commit 424ece0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/source/contributing/developer_guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,10 +542,10 @@ There are some example in the ``CompoundStep`` doc:
542542
The base class for most MCMC sampler (except SMC) is in [ArrayStep](https://github.com/pymc-devs/pymc/blob/main/pymc/step_methods/arraystep.py).
543543
You can see that the ``step.step()`` is mapping the ``point`` into an array, and call ``self.astep()``, which is an array in, array out function.
544544
A PyMC model compiles a conditional logp/dlogp function that replace the input RVs with a shared 1D tensor (flatten and stack view of the original RVs).
545-
And the transition kernel (i.e., ``.astep()``) takes an array as input and output an array.
546-
See for example in the [MH sampler](https://github.com/pymc-devs/pymc/blob/6d07591962a6c135640a3c31903eba66b34e71d8/pymc/step_methods/metropolis.py#L139-L173).
545+
And the transition kernel (i.e., ``.astep()``) takes an array as input and outputs an array.
546+
See for example in the [MH sampler](https://github.com/pymc-devs/pymc/blob/89f6fcf751774fb50016561dc448a87fba7ed3aa/pymc/step_methods/metropolis.py#L235-L289).
547547

548-
This is of course very different compare to the transition kernel in e.g. TFP, which is a tenor in tensor out function.
548+
This is of course very different compared to the transition kernel in e.g. TFP, which is a tenor in tensor out function.
549549
Moreover, transition kernels in TFP do not flatten the tensors, see eg docstring of [tensorflow\_probability/python/mcmc/random\_walk\_metropolis.py](https://github.com/tensorflow/probability/blob/master/tensorflow_probability/python/mcmc/random_walk_metropolis.py):
550550

551551
```python

0 commit comments

Comments
 (0)