Here is the line fitting example we discussed in class.

Here is the simple linear separation example. The quadratic version can be visualized using racket (pdf)

We can also fix other parameters to obtain the model from the book, and another one. The solutions are visualized using racket (pdf)