/TensorFlow Python

Module: tf.keras.models

Defined in tensorflow/tools/api/generator/api/keras/models/__init__.py.

Imports for Python API.

This file is MACHINE GENERATED! Do not edit. Generated by: tensorflow/tools/api/generator/create_python_api.py script.


class Model: Model groups layers into an object with training and inference features.

class Sequential: Linear stack of layers.


load_model(...): Loads a model saved via save_model.

model_from_config(...): Instantiates a Keras model from its config.

model_from_json(...): Parses a JSON model configuration file and returns a model instance.

model_from_yaml(...): Parses a yaml model configuration file and returns a model instance.

save_model(...): Saves a model to a HDF5 file.

Other Members




© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.