Skip to content

Commit 3069fc4

Browse files
csutertensorflower-gardener
authored andcommitted
Fix typo in HMM docstring (obs dist is over x | z, not z | x)
PiperOrigin-RevId: 390136806
1 parent c856489 commit 3069fc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_probability/python/distributions/hidden_markov_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class HiddenMarkovModel(distribution.Distribution):
5757
which distribution `z[i + 1]` is drawn from. The distributions corresponding
5858
to the probability of `z[i + 1]` conditional on `z[i] == k` is given by the
5959
elements of the batch whose rightmost coordinate is `k`.
60-
Similarly, the conditional distribution of `z[i]` given `x[i]` is given by
60+
Similarly, the conditional distribution of `x[i]` given `z[i]` is given by
6161
the batch of `observation_distribution`.
6262
When the rightmost coordinate of `observation_distribution` is `k` it
6363
gives the conditional probabilities of `x[i]` given `z[i] == k`.

0 commit comments

Comments
 (0)