So if they are shorter than that there'll be padded. I'm going to make sure all of my reviews are 120 words long. My embedding dimensions, which you'll see in a moment will be 16 dimensions. So I've decided I'm going to do a 10,000-word vocab size. So next up is where I'm going to do my sentence encoding. So I'm going to convert my training labels that I created into a numpy array like this. Secondly also for training, I need numpy arrays instead of just straight array. I'm going to create lists of training sentences and labels, testing sentences and labels, and I'm going to copy the contents of the tensors into these so that I can encode and pad them later. So next up is the code where I'm going to get my IMDb training and my IMDb testing and load them into training and test data. But the IMDb set is what we're going to be looking at here. I'm going to use the info set in another video, we're not going to use it here. On TFDS load, IMDb reviews will give me an IMDb set and an info set. So the next thing I'm going to do is just import TensorFlow datasets as TFDS. Okay so let's take a look at the code, that we're going to use in this environment. To develop a deeper understanding of how neural networks work, we recommend that you take the Deep Learning Specialization. This new deeplearning.ai TensorFlow Specialization teaches you how to use TensorFlow to implement those principles so that you can start building and applying scalable models to real-world problems. The Machine Learning course and Deep Learning Specialization from Andrew Ng teach the most important and foundational principles of Machine Learning and Deep Learning. Finally, you’ll get to train an LSTM on existing text to create original poetry! You’ll also learn to apply RNNs, GRUs, and LSTMs in TensorFlow. You will learn to process text, including tokenizing and representing sentences as vectors, so that they can be input to a neural network. In Course 3 of the deeplearning.ai TensorFlow Specialization, you will build natural language processing systems using TensorFlow. This Specialization will teach you best practices for using TensorFlow, a popular open-source framework for machine learning. If you are a software developer who wants to build scalable AI-powered algorithms, you need to understand how to use the tools to build them.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |