April 2017
Intermediate to advanced
320 pages
7h 46m
English
Here is the complete source code; you can see how short the number of lines of code as shown in the following. However, if you experience error saying that there’s no module called keras.datasets and so on, you should install keras package using the following command:
$ sudo pip install keras
Alternatively, download the source code of Keras from https://pypi.python.org/pypi/Keras, unzip the file and run the source code using Python 3 (within the keras folder) as follows:
python keras_movie_classifier_1.py
import numpy from keras.datasets import imdb from keras.models import Sequential from keras.layers import Dense from keras.layers import LSTM from keras.layers.embeddings import Embedding ...
Read now
Unlock full access