Let's get started! We will first train a model for image classification that we can use later in the chapter to decide whether a photo has a hot dog.
Building the Hot Dog or Not Hot Dog application using machine learning
Training a model
To train a model for image classification, we need to collect photos of hot dogs and photos that aren't of hot dogs. Because most items in the world are not hot dogs, we need more photos that don't contain hot dogs. It's better if the photos of hot dogs cover a lot of different hot-dog scenarios—with bread, with ketchup, or with mustard, such as. This is so the model will be able to recognize hot dogs in different situations. When we are collecting photos that aren...