There's more...
Overfitting is a common challenge in scenarios where we have only a few data samples to learn from. This prevents our model from performing robustly on unseen data. There are a few techniques that help us deal with this issue:
Data augmentation: It is a technique that reduces overfitting by generating more training data from existing samples in the data and augmenting the samples via several random transformations that produce believable-looking images. It creates modified versions by applying operations like shifting, flipping, zooming, and so on. It also enriches our data, which helps to generalize our model and make it more robust. Data augmentation is done only on the training set.
The keras library in R provides ...
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