Search⌘ K

Model Configuration

Explore how to configure neural network models in Keras for training by setting the optimizer, loss function, and evaluation metrics. This lesson guides you through using the compile function to prepare models for binary and multiclass classification, enabling you to create and train effective deep learning models with clarity.

Chapter Goals:

  • Learn how to configure a Keras model for training.

A. Configuring for training

When it comes to configuring the model for training, Keras shines with its simplicity. A single call to the compile function allows to set up all the training requirements for the model.

The function takes in a single required argument, which is the optimizer to use, e.g. ...