Creating a basic image classifier
We'll close this chapter by implementing an image classifier on Fashion-MNIST
, a popular alternative to mnist
. This will help us consolidate the knowledge we've acquired from the previous recipes. If, at any point, you need more details on a particular step, please refer to the previous recipes.
Getting ready
I encourage you to complete the five previous recipes before tackling this one since our goal is to come full circle with the lessons we've learned throughout this chapter. Also, make sure you have Pillow
and pydot
on your system. You can install them using pip:
$> pip install Pillow pydot
Finally, we'll use the tensorflow_docs
package to plot the loss and accuracy curves of the model. You can install this library with the following command:
$> pip install git+https://github.com/tensorflow/docs
How to do it…
Follow these steps to complete this recipe:
- Import the necessary packages:
import...