DL Model Training, Testing, and Evaluation

Keras API allows us to build DL models using the Sequential model class, functional interface, and model subclassing. Let’s design a Sequential Keras model, perform model training, and test/evaluate the trained model.

Model creation

The Sequential model class can create a DL model with layers stacked one after the other. For instance, the following code imports the Sequential model and builds a simple CNN architecture:

Get hands-on with 1400+ tech skills courses.