There's more...
In the preceding example, without preprocessing, the accuracy of the three data sets is roughly ~40 percent. But when we add preprocessing, the accuracy for the training data increases to 90 percent, but for validation and testing, we still get an accuracy of ~45 percent.
There are many changes which can be introduced to improve the result. First, the dataset that we used in the recipe is the Kaggle dataset with only 22,000 images. If you observe these images you will find the addition of the step of filtering only faces will improve the result. Another strategy, as mentioned in the following paper, is increasing the size of hidden layers instead of reducing them-https://www.cs.swarthmore.edu/~meeden/cs81/s14/papers/KevinVincent.pdf ...
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