Now that we have working code and a generator that produces images, what do we do next? Let's look at what parameters we can use to improve the performance of our network. This section will focus on showing you the various areas where you may be able to improve your code.
There are many ways to optimize code—too many to cover here. With that in mind, we'll cover some of the basics to ensure that you have an idea of where to start modifying the code in this recipe:
- The training code—each of the
flipcoin
functions (these functions have a modified probability, where the higher the probability, the higher the chance it will evaluate totrue
) - The generation and discriminator's structures
- The number of images