From the course: Deep Learning with Python: Sequence Models and Transformers

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Building a simple RNN with Keras

Building a simple RNN with Keras

- [Instruction] In this video, we are going to be building a recurrent neural network in Python using Keras. The model we're going to be building is a sentiment analysis model. So before we begin, let's select our kernel. And I've already pre-run the code to save some time here. So for this tutorial, we are going to need two packages, TensorFlow and Keras. And if you want to know a little bit more about building deep learning models in Python using TensorFlow and Keras, I recommend that you watch my other course videos. The course is titled "Deep Learning with Python Foundations." So to begin, we want to go ahead and import Keras from the TensorFlow package. And we also want to import the Layers package as well. We're going to be using these two classes to define and build the model that we want to work with today. The next thing we do here is specify a seed. The reason why we do this is to make a code deterministic, which means that as much as possible when I run my code and you run…

Contents