Monday, May 22, 2017

Deep Learning and Keras

Ok, let's talk about one wonderful subject: Deep Learning.
Every time you go to Google Translate you use Deep Learning. Every time you use technology, like the Chatbot I was talking about in my previous post, you use Deep Learning.
The promises of AI are coming back. Now almost reality. Exciting.
 
In one of my previous posts I talked about one of the most promising framework for Deep Learning in Python: TensorFlow.

TensorFlow is powerful, but it is a little bit low-level. Good if you want to enter in details and control, efficiently, all the aspects.

A really interesting "Frond-End" framework, born to simplify usage of Deep Models is:


Keras normally use TensorFlow as backend, but it can be configured to use Theano.
With Keras it is easier to design, compile and run a model. It is easy to switch from CPU to GPU.
 In the following gist, with code taken from Keras public documentation, you see how easy is to define, train, test a Neural Netwok Model.
In the documentation you find also full fledged examples, with data (for example MNIST).
One word of caution: if you try more complicated models, with many layers, the training can take too long on CPU. I'll return back.

No comments:

Post a Comment