Skip to content

Commit 3012121

Browse files
committed
fixed typo in hmm input
1 parent 46c3dcc commit 3012121

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ch06_hmm/Concept01_forward.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,15 @@
149149
"name": "stdout",
150150
"output_type": "stream",
151151
"text": [
152-
"Probability of observing [0, 1, 1, 2, 1] is 0.0046421488\n"
152+
"Probability of observing [0, 1, 1, 2, 1] is 0.004540300799999999\n"
153153
]
154154
}
155155
],
156156
"source": [
157157
"if __name__ == '__main__':\n",
158158
" initial_prob = np.array([[0.6], [0.4]])\n",
159159
" trans_prob = np.array([[0.7, 0.3], [0.4, 0.6]])\n",
160-
" obs_prob = np.array([[0.5, 0.4, 0.1], [0.1, 0.3, 0.6]])\n",
160+
" obs_prob = np.array([[0.1, 0.4, 0.5], [0.6, 0.3, 0.1]])\n",
161161
"\n",
162162
" hmm = HMM(initial_prob=initial_prob, trans_prob=trans_prob, obs_prob=obs_prob)\n",
163163
"\n",

0 commit comments

Comments
 (0)