February 2018
Intermediate to advanced
450 pages
11h 27m
English
In this section, we will divide our data into small batches to be used for training. So, the batches will consist of many sequences of desired number of sequence steps. So, let's look at a visual example in Figure 11:

So, now we need to define a function that will iterate through the encoded text and generate the batches. In this function we will be using a very nice mechanism of Python called yield (link: https://jeffknupp.com/blog/2013/04/07/improve-your-python-yield-and-generators-explained/ ...
Read now
Unlock full access