Training neural networks efficiently with high-level TensorFlow APIs
In this section, we will take a look at two high-level TensorFlow APIs—the Layers API (tensorflow.layers
or tf.layers
) and the Keras API (tensorflow.contrib.keras
).
Keras can be installed as a separate package. It supports Theano or TensorFlow as backend (for more information, refer to the official website of Keras at https://keras.io/).
However, after the release of TensorFlow 1.1.0, Keras has been added to the TensorFlow contrib
submodule. It is very likely that the Keras subpackage will be moved outside the experimental contrib
submodule and become one of the main TensorFlow submodules soon.
Building multilayer neural networks using TensorFlow's Layers API
To see what neural ...
Get Python Machine Learning - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.