The following demos are based on these tutorials. Some of the code I borrowed (where I did, I made a note of it in the source) but most of it I rewrote in a TDD workflow in order to fully understand what is happening.
Our model is based on the quadratic equation with the predefined coefficients. We add some noise and generate a pile of training data. Here's a graph of the line and the generated training data.