Kalman-and-Bayesian-Filters-in-Python
Kalman-and-Bayesian-Filters-in-Python copied to clipboard
Issues in chapter 6
From a private email:
I just wanted to point you to a few minor issues in Chapter 6 (I am reading this book online in my browser using Jupyter notebooks, so I'm not sure if this is the latest version ): (1) in the text immediately following cell number 30. You use the variable name "data", but you do not use that in the code in the cell above. Presumably you mean "zs", as that is what you use to check whether measurements are provided!? (2) a few lines later you say " data contains the actual position and measurement of the dog, so we use [:, 1] to get an array of measurements. " is data the tuple (track, zs) then? (3) cell 31 does result in an error message, as dt is an unknown argument that is used in the "run" function (defined in cell 30) and then passed to the "plot_track" function. However, after inspecting the plot_track function, I found that it is defined with a different name for dt, namely "std_scale". So when I change the call of "plot_track" within the function definition in cell 30 to plot_track(xs[:, 0], track, zs, cov, std_scale=dt, **kwargs) running cell 31 (after re-running cell 30) works just fine.
It's an easy fix, but I hope this is useful to you.