Skip to content

Commit a068bf1

Browse files
committed
bw algorithm example corrected
1 parent b947597 commit a068bf1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,17 +235,19 @@ Using Baum-Welch algorithm to infer the parameters of a Hidden Markov model:
235235
'pi': [0.009030829793043593, 0.016658391248503462, 0.0038894983546756065]
236236
}
237237

238-
Inferred transition (`tp`), emission (`ep`) probability matrices and
238+
The inferred transition (`tp`), emission (`ep`) probability matrices and
239239
initial state distribution (`pi`) can be accessed as shown:
240240

241241
.. code:: python
242242
243243
>>> a.ep, a.tp, a.pi
244244
245+
This model can be decoded using Viterbi algorithm:
246+
245247
.. code:: python
246248
247249
>>> new_obs = "GGCATTGGGCTATAAGAGGAGCTTG"
248-
>>> vs, vsi = m.viterbi(new_obs)
250+
>>> vs, vsi = a.viterbi(new_obs)
249251
>>> print("VI", "".join(vs))
250252
>>> print("NO", new_obs)
251253

setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
# This flag says that the code is written to work on both Python 2 and Python
33
# 3. If at all possible, it is good practice to do this. If you cannot, you
44
# will need to generate wheels for each Python version that you support.
5-
universal=1
65
[metadata]
76
description-file = README.rst

0 commit comments

Comments
 (0)