In the first section of this chapter, we built a simple Keras Sequential model. The resulting Model object contains numerous useful methods and properties:
- .inputs and .outputs: Provide access to the inputs and outputs of the model.
- .layers: Lists the model's layers as well as their shape.
- .summary(): Prints the architecture of the model.
- .save(): Saves the model, its architecture, and the current state of training. It is very useful for resuming training later on. Models can be instantiated from a file using tf.keras.models.load_model().
- .save_weights(): Only saves the weights of the model.
While there is only one type of Keras model object, they can be built in a variety of ways.