File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -235,17 +235,19 @@ Using Baum-Welch algorithm to infer the parameters of a Hidden Markov model:
235
235
'pi': [0.009030829793043593, 0.016658391248503462, 0.0038894983546756065]
236
236
}
237
237
238
- Inferred transition (`tp `), emission (`ep `) probability matrices and
238
+ The inferred transition (`tp `), emission (`ep `) probability matrices and
239
239
initial state distribution (`pi `) can be accessed as shown:
240
240
241
241
.. code :: python
242
242
243
243
>> > a.ep, a.tp, a.pi
244
244
245
+ This model can be decoded using Viterbi algorithm:
246
+
245
247
.. code :: python
246
248
247
249
>> > new_obs = " GGCATTGGGCTATAAGAGGAGCTTG"
248
- >> > vs, vsi = m .viterbi(new_obs)
250
+ >> > vs, vsi = a .viterbi(new_obs)
249
251
>> > print (" VI" , " " .join(vs))
250
252
>> > print (" NO" , new_obs)
251
253
Original file line number Diff line number Diff line change 2
2
# This flag says that the code is written to work on both Python 2 and Python
3
3
# 3. If at all possible, it is good practice to do this. If you cannot, you
4
4
# will need to generate wheels for each Python version that you support.
5
- universal =1
6
5
[metadata]
7
6
description-file = README.rst
You can’t perform that action at this time.
0 commit comments