Model Execution
Explore how to execute Keras models by training with input data using the fit function, evaluating performance with the evaluate function, and making predictions with the predict function. Understand how to handle NumPy arrays in these processes to effectively manage model metrics and outputs.
We'll cover the following...
We'll cover the following...
Chapter Goals:
- Understand the facets of model execution for Keras models
A. Training
After configuring a Keras model for training, it only takes a single line of code to actually perform the training. We use the Sequential model's fit function to train the model on input data and labels.
The first two arguments of the fit function are the input data and labels, respectively. Unlike TensorFlow (where ...