Keras is a high-level API for building and training neural networks. A sequential model is assembled from layers, then compiled and fit to data. Examples include classifying points in a circular, nonlinear pattern and recognizing handwritten digits. section 10.3
A typical workflow in these examples is to:
- Preprocess inputs and convert class labels to categorical vectors. section 10.3
- Add dense layers and dropout, then compile with a loss, optimizer, and accuracy metric. section 10.3
- Train with fit and use predictions to classify test images. section 10.3
Figure 10.20 Neural networks are great for nonlinearly separable sets. To test this, we’ll train a neural network on this circular dataset.
The circular dataset illustrates why a neural network can be useful when classes require a nonlinear decision boundary. section 10.3





