ทบทวน Regression

Extreme Gradient Boosting with XGBoost

Sergey Fogelson

Head of Data Science, TelevisaUnivision

พื้นฐาน Regression

  • ค่า Outcome เป็นค่าจริง (real-valued)

Extreme Gradient Boosting with XGBoost

เมตริก Regression ที่ใช้บ่อย

  • Root mean squared error (RMSE)
  • Mean absolute error (MAE)
Extreme Gradient Boosting with XGBoost

การคำนวณ RMSE

ค่าจริง ค่าพยากรณ์
10 20
3 8
6 1
Extreme Gradient Boosting with XGBoost

การคำนวณ RMSE

ค่าจริง ค่าพยากรณ์ Error
10 20 -10
3 8 -5
6 1 5
Extreme Gradient Boosting with XGBoost

การคำนวณ RMSE

ค่าจริง ค่าพยากรณ์ Error Squared Error
10 20 -10 100
3 8 -5 25
6 1 5 25
  • Total Squared Error: 150
  • Mean Squared Error: 50
  • Root Mean Squared Error: 7.07
Extreme Gradient Boosting with XGBoost

การคำนวณ MAE

ค่าจริง ค่าพยากรณ์ Error
10 20 -10
3 8 -5
6 1 5
  • Total Absolute Error: 20
  • Mean Absolute Error: 6.67
Extreme Gradient Boosting with XGBoost

อัลกอริทึม Regression ที่ใช้บ่อย

  • Linear regression
  • Decision trees
Extreme Gradient Boosting with XGBoost

อัลกอริทึมสำหรับทั้ง Regression และ Classification

1 https://www.ibm.com/support/knowledgecenter/en/SS3RA7_15.0.0/ com.ibm.spss.modeler.help/nodes_treebuilding.htm
Extreme Gradient Boosting with XGBoost

มาฝึกกันเถอะ!

Extreme Gradient Boosting with XGBoost

Preparing Video For Download...