Python Deep Learning With Keras
Python Deep Learning With Keras
• Two of the top numerical platforms in Python that provide the basis for
Deep Learning research and development are Theano and TensorFlow.
• Both are very powerful libraries, but both can be difficult to use directly
for creating deep learning models.
• We will discover the Keras Python library that provides a clean and
convenient way to create a range of deep learning models on top of
Theano or TensorFlow.
What is Keras?
• Keras is a minima list Python library for deep learning that can run on top of
Theano or TensorFlow.
• It runs on Python 2.7 or 3.5 and can seamlessly execute on GPUs and CPUs
given the underlying frameworks.
What is Keras?
Keras was developed based on some guiding principles:
• The main type of model is called a Sequence which is a linear stack of layers.
• You create a sequence and add layers to it in the order that you wish for the
computation to be performed.
• Once defined, you compile the model which makes use of the underlying
framework to optimize the computation to be performed by your model. In this you
can specify the loss function and the optimizer to be used.
• Once compiled, the model must be fit to data. This can be done one batch of data at
a time or by firing off the entire model training regime. This is where all the
compute happens.
• Once trained, you can use your model to make predictions on new data.
Build Deep Learning Models with Keras