File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tensorflow_probability/python/mcmc Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ class ReplicaExchangeMC(kernel_base.TransitionKernel):
308
308
`untempered_log_prob_fn`. In this case, the `kth` replica samples from
309
309
density `p_k(x)` with
310
310
`log(p_k(x)) = beta_k * tempered_log_prob_fn(x) + untempered_log_prob_fn(x)`.
311
- The this case, `beta` may be zero, and one often sets `beta[-1]` to zero.
311
+ In this case, `beta` may be zero, and one often sets `beta[-1]` to zero.
312
312
This means the last replica samples using `untempered_log_prob_fn`.
313
313
In the Bayesian setup, `untempered_log_prob_fn` will often be the log prior,
314
314
and `tempered_log_prob_fn` the likelihood.
@@ -830,7 +830,7 @@ def bootstrap_results(self, init_state):
830
830
raise ValueError (
831
831
'Number of replicas implied by initial state ({}) must equal '
832
832
'number of replicas implied by inverse_temperatures ({}), but '
833
- 'did not' .format (it_n_replica , state_n_replica ))
833
+ 'did not' .format (state_n_replica , it_n_replica ))
834
834
835
835
# We will now replicate each of a possible batch of initial stats, one for
836
836
# each inverse_temperature. So if init_state=[x, y] of shapes [Sx, Sy]
You can’t perform that action at this time.
0 commit comments