© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
L. Long, X. ZengBeginning Deep Learning with TensorFlowhttps://doi.org/10.1007/978-1-4842-7915-1_9

9. Overfitting

Liangqu Long1   and Xiangming Zeng2
(1)
Shenzhen, Guangdong, China
(2)
State College, PA, USA
 

Everything should be made as simple as possible, but not simpler.

—Albert Einstein

The main purpose of machine learning is to learn the real model of the data from the training set, so that it can perform well on the unseen test set. We call this the generalization ability. Generally speaking, the training set and the test set are sampled from the same data distribution. The sampled samples are independent of each other, but come from the same distribution. ...

Get Beginning Deep Learning with TensorFlow: Work with Keras, MNIST Data Sets, and Advanced Neural Networks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.