If you train a linear model on this data, you get the solid line, while the old model is represented by the dotted line. As you can see, not only does adding a few missing countries significantly alter the model, but it makes it clear that such a simple linear model is probably never going to work well. It seems that very rich countries are not happier than moderately rich countries (in fact they seem unhappier), and conversely some poor countries seem happier than many rich countries.
- 1. The Machine Learning Landscape
- from Hands-On Machine Learning with Scikit-Learn and TensorFlow
- Publisher: O'Reilly Media, Inc.
- Released: March 2017
Dimensionality reduction and feature extraction
Share this highlighthttp://www.safaribooksonline.com/a/hands-on-machine-learning/17019095/