Chapter 18
Performing Cross-Validation, Selection, and Optimization
IN THIS CHAPTER
Learning about overfitting and underfitting
Choosing the right metric to monitor
Cross-validating the results
Selecting the best features for machine learning
Optimizing hyperparameters
Machine learning algorithms can indeed learn from data. For instance, the four algorithms presented in the previous chapter, although quite simple, can effectively estimate a class or a value after being presented with examples associated with outcomes. It is all a matter of learning by induction, which is the process of extracting general rules from specific examples. From childhood, humans commonly learn by seeing examples, deriving some general rules or ideas from them, and then successfully applying the derived rule to new situations as we grow up. For example, if we see someone being burned after touching fire, we understand that fire is dangerous, and we don’t need to touch it ourselves to know that.
Learning ...
Get Python for Data Science For Dummies, 2nd Edition 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.