16.9 Recurrent Neural Networks for Sequences; Sentiment Analysis with the IMDb Dataset
In the MNIST CNN network, we focused on stacked layers that were applied sequentially. Non-sequential models are possible, as you’ll see here with recurrent neural networks. In this section, we use Keras’s bundled IMDb (the Internet Movie Database) movie reviews dataset72 to perform binary classification, predicting whether a given review’s sentiment is positive or negative.
Get Intro to Python for Computer Science and Data Science: Learning to Program with AI, Big Data and The Cloud 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.