The chart below show 30 examples in three classes—red, green, and blue. Each class has two inputs and that range between 0 and 100.
The Julia program below finds polynomial logistic models for the classes. It uses gradient descent to find for .
The above program should run in under a minute and then print out values. For each of the classes, try entering its values below. When you’ve entered all the values, you will see what the model function for that class looks like.