Chapter 10
Training a Neural Network
IN THIS CHAPTER
Avoiding data “gotchas” in neural network training
Evaluating a neural network model and architecture choices
Building your first neural network in Keras
Building your first neural network in PyTorch
Neural networks are powerful models, but training a neural network can be more of an art than a science. Often, you’ll run a model, tweak one small thing, and then rerun a model to see how it changed. Sometimes, it can be hard to tell if the network’s difference in performance was due to a change you made or due to random chance! While this can be frustrating, this chapter is meant to guide you by providing some common decision criteria and pitfalls to avoid. This hopefully gets you up and running with a little less heartache.
Of course, there are always going to be exceptions to the pointers presented here. One of the great things about Python, as well as the Keras and PyTorch libraries that implement these models, is that you have a lot of freedom to make changes and put your own spin on a neural network model.
In this chapter, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access