Machine Learning with Tree-Based Models in Python
Elie Kawerk
Data Scientist

尋找最能近似 $f$ 的模型 $\hat{f}$:$\hat{f} \approx f$
$\hat{f}$ 可為 Logistic Regression、Decision Tree、Neural Network…
盡量排除雜訊。
最終目標:$\hat{f}$ 在未見資料上有低預測誤差。
過度擬合:
$\hat{f}(x)$ 去擬合了訓練集的雜訊。
欠擬合:
$\hat{f}$ 彈性不足,無法近似 $f$。


$\hat{f}$ 的泛化誤差:$\hat{f}$ 在未見資料上表現是否良好?
可拆解如下:
$\hat{f}$ 的泛化誤差 = $bias^2 + variance + \text{irreducible error}$


模型複雜度:決定 $\hat{f}$ 的彈性。
例如:最大樹深、每葉最少樣本數…


Machine Learning with Tree-Based Models in Python