Using the Keras RNN LSTM API for stock price prediction

Keras is a very easy-to-use high-level deep learning Python library running on top of other popular deep learning libraries, including TensorFlow, Theano, and CNTK. As you'll see soon, Keras makes building and playing with models a lot easier. To install and use Keras, along with TensorFlow as Keras' backend, it's best to set up a virtualenv first:

sudo pip install virtualenv

Then run the following commands, if you have TensorFlow 1.4 source on your machine and your iOS and Android apps; use the TensorFlow 1.4 custom library:

cdmkdir ~/tf14_kerasvirtualenv --system-site-packages ~/tf14_keras/cd ~/tf14_keras/source ./bin/activateeasy_install -U pippip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.4.0-py2-none-any.whl ...

Get Intelligent Mobile Projects with TensorFlow 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.