Upgrading the Learner
After this mathematical detour, we can come back to the work at hand. We want to upgrade our learning program to deal with multiple input variables. Let’s make a plan of action so that we don’t get lost in the process:
-
First, we’ll load and prepare the multidimensional data, so that we can feed them to the learning algorithm.
-
After preparing the data, we’ll upgrade all the functions in our code to use the new model: we’ll switch from a line to a more generic weighted sum, as I described in Adding More Dimensions.
Let’s step through this plan. Feel free to type the commands in a Python interpreter and make your own experiments. If you don’t have an interpreter handy, fear not: I will show you the output of all important ...
Get Programming Machine Learning now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.