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

หา $\hat{f}$ ที่ประมาณค่า $f$ ได้ดีที่สุด: $\hat{f} \approx f$
$\hat{f}$ อาจเป็น Logistic Regression, Decision Tree, Neural Network ...
กำจัด noise ให้มากที่สุด
เป้าหมาย: $\hat{f}$ ควรมี predictive error ต่ำบนข้อมูลที่ไม่เคยเห็น
Overfitting:
$\hat{f}(x)$ ปรับตัวตาม noise ในชุดฝึก
Underfitting:
$\hat{f}$ ไม่ยืดหยุ่นพอที่จะประมาณค่า $f$


Generalization Error ของ $\hat{f}$: $\hat{f}$ generalize ได้ดีบนข้อมูลใหม่หรือไม่?
แยกย่อยได้ดังนี้:
Generalization Error ของ $\hat{f} = bias^2 + variance + \text{irreducible error}$


Model Complexity: กำหนดความยืดหยุ่นของ $\hat{f}$
ตัวอย่าง: Maximum tree depth, Minimum samples per leaf, ...


Machine Learning with Tree-Based Models in Python