ยินดีต้อนรับสู่คอร์ส!

Extreme Gradient Boosting with XGBoost

Sergey Fogelson

Head of Data Science, TelevisaUnivision

ก่อนจะไปถึง XGBoost...

  • ต้องเข้าใจพื้นฐานของ
    • การจำแนกประเภทแบบ Supervised
    • Decision trees
    • Boosting
Extreme Gradient Boosting with XGBoost

Supervised learning

  • อาศัยข้อมูลที่มีป้ายกำกับ
  • มีความเข้าใจพฤติกรรมในอดีตบ้าง
Extreme Gradient Boosting with XGBoost

ตัวอย่าง Supervised learning

  • ภาพที่กำหนดมีใบหน้าคนหรือไม่?
  • ข้อมูลฝึก: เวกเตอร์ของค่าพิกเซล
  • ป้ายกำกับ: 1 หรือ 0
Extreme Gradient Boosting with XGBoost

Supervised learning: การจำแนกประเภท

  • ผลลัพธ์เป็นแบบ binary หรือ multi-class ก็ได้
Extreme Gradient Boosting with XGBoost

ตัวอย่างการจำแนกประเภทแบบ Binary

  • บุคคลจะซื้อแพ็กเกจประกันตามใบเสนอราคาที่กำหนดหรือไม่?

Extreme Gradient Boosting with XGBoost

ตัวอย่างการจำแนกประเภทแบบ Multi-class

  • จำแนกชนิดพันธุ์ของนกที่กำหนด
Extreme Gradient Boosting with XGBoost

AUC: เมตริกสำหรับโมเดลจำแนกประเภทแบบ Binary

  • พื้นที่ใต้เส้นโค้ง ROC (AUC)
  • AUC มากขึ้น = โมเดลดีขึ้น

ตัวอย่าง AUC

Extreme Gradient Boosting with XGBoost

คะแนน Accuracy และ Confusion matrix

  • Confusion matrix ตัวอย่าง confusion matrix

  • Accuracy $$\frac{tp+tn}{tp+tn+fp+fn}$$

Extreme Gradient Boosting with XGBoost

ทบทวน

Extreme Gradient Boosting with XGBoost

ข้อพิจารณาอื่นใน Supervised learning

  • ฟีเจอร์อาจเป็นตัวเลขหรือเชิงกลุ่มก็ได้
  • ฟีเจอร์ตัวเลขควรปรับสเกล (Z-score)
  • ฟีเจอร์เชิงกลุ่มควรเข้ารหัส (one-hot)
Extreme Gradient Boosting with XGBoost

การจัดอันดับ

  • การทำนายลำดับจากชุดตัวเลือก

Extreme Gradient Boosting with XGBoost

การแนะนำ

  • แนะนำสิ่งที่น่าสนใจให้ผู้ใช้
  • อิงจากประวัติการใช้งานและโปรไฟล์
  • ตัวอย่าง: Netflix
Extreme Gradient Boosting with XGBoost

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

Extreme Gradient Boosting with XGBoost

Preparing Video For Download...