About Keras
Getting started
Developer guides
Keras 3 API documentation
Keras 2 API documentation
Models API
The Model class
The Sequential class
Model training APIs
Saving & serialization
Layers API
Callbacks API
Optimizers
Metrics
Losses
Data loading
Built-in small datasets
Keras Applications
Mixed precision
Utilities
Code examples
KerasTuner: Hyperparameter Tuning
KerasCV: Computer Vision Workflows
KerasNLP: Natural Language Workflows
search
►
Keras 2 API documentation
/ Models API
Models API
The Model class
Model class
summary method
get_layer method
The Sequential class
Sequential class
add method
pop method
Model training APIs
compile method
fit method
evaluate method
predict method
train_on_batch method
test_on_batch method
predict_on_batch method
run_eagerly property
Saving & serialization
Whole model saving & loading
Weights-only saving & loading
Model config serialization
Model export for inference
Serialization utilities
Models API
The Model class
The Sequential class
Model training APIs
Saving & serialization