- Hands-On Machine Learning with Microsoft Excel 2019
- Julio Cesar Rodriguez Martino
- 303字
- 2021-06-24 15:10:58
Comparing underfitting and overfitting
In the preceding list, step 4 implies an iterative process where we try models, parameters, and features until we get the best result that we can. Let's now think about a classification problem, where we want to separate squares from circles, as shown in the following diagram. At the beginning of the process, we will probably be in a situation that is similar to the first chart (on the left-hand side). The model fails to efficiently separate the two shapes and both sides are a mixture of both squares and circles. This is called underfitting and refers to a model that fails to represent the characteristics of the dataset:

As we continue tuning parameters and adjusting the model to the training dataset, we might find ourselves in a situation that is similar to the third chart (on the right-hand side). The model accurately splits the dataset, leaving only one shape on each side of the border line. Even if this seems correct, it completely lacks generalization. The result adjusts so well to the training data that it will be completely wrong to we test it against a different dataset. This problem is called overfitting.
To solve the problem of overfitting in our model, we need to increase its adaptability. However, making it too flexible can also make it bad at predicting. To avoid this, the usual solution is to use regularization techniques. There are many similar techniques that can be found in specialized literature, but they are beyond the scope of this book.
The center chart shows a more flexible model; it represents the dataset, but is general enough to deal with new, previously unseen data. It is often time-consuming and it can be difficult to get the right balance in order to build a good machine learning model.
- 漫話大數(shù)據(jù)
- 數(shù)據(jù)存儲架構(gòu)與技術(shù)
- 程序員修煉之道:從小工到專家
- Unity 5.x Game AI Programming Cookbook
- WS-BPEL 2.0 Beginner's Guide
- 智能數(shù)據(jù)分析:入門、實戰(zhàn)與平臺構(gòu)建
- 數(shù)據(jù)庫設(shè)計與應(yīng)用(SQL Server 2014)(第二版)
- Proxmox VE超融合集群實踐真?zhèn)?/a>
- 重復(fù)數(shù)據(jù)刪除技術(shù):面向大數(shù)據(jù)管理的縮減技術(shù)
- 計算機組裝與維護(hù)(微課版)
- 云計算寶典:技術(shù)與實踐
- Access 2010數(shù)據(jù)庫程序設(shè)計實踐教程
- Microsoft Dynamics NAV 2015 Professional Reporting
- 掌中寶:電腦綜合應(yīng)用技巧
- 數(shù)據(jù)庫原理及應(yīng)用實驗:基于GaussDB的實現(xiàn)方法