In this section, we are going to look at the sample code we described earlier in this chapter. We specifically are going to look at how we build different networks. The NetworkBuilder is our main object for building the four different types of networks we need for this exercise. You can feel free to modify it and add additional networks if you so desire. Currently, it supports the following networks:
- LSTM
- RNN
- GRU
- Feedforward
The one thing that you will notice in our sample network is that the only difference between networks is how the network itself is created via the NetworkBuilder. All the remaining code stays the same. You will also note if you look through the example source code that the number of iterations or epochs is much lower in the GRU sample. This is because GRUs are typically easier to train and therefore require fewer iterations. While...