Merge pull request #111 from neonquill/fix_train_filter

Fix train example in 02-Discrete-Bayes.
This commit is contained in:
Roger Labbe 2016-08-27 08:09:41 -07:00 committed by GitHub
commit 044063363c

View File

@ -16252,7 +16252,7 @@
"\n",
" likelihood = lh_hallway(track, m, sensor_accuracy)\n",
" posterior = update(likelihood, prior)\n",
" index = np.argmax(prior)\n",
" index = np.argmax(posterior)\n",
" if i < iterations - 1:\n",
" prior = predict(posterior, move_distance, kernel) \n",
"\n",
@ -17067,7 +17067,7 @@
"output_type": "stream",
"text": [
"time 0: pos 4, sensed 4, at position 4\n",
" predicted position is 0 with confidence 8.2042%:\n",
" predicted position is 4 with confidence 91.0665%:\n",
"time 1: pos 8, sensed 8, at position 8\n",
" predicted position is 8 with confidence 99.9902%:\n",
"time 2: pos 2, sensed 2, at position 2\n",