การบำรุงรักษาโมเดล

MLOps Deployment and Life Cycling

Nemanja Radojkovic

Senior Machine Learning Engineer

ที่ผ่านมา...

  • จะตรวจจับความผิดปกติและสัญญาณรบกวนได้อย่างไร?

 

บทเรียนนี้เน้น: ความล้มเหลวของโมเดล ML

MLOps Deployment and Life Cycling

โมเดลเสื่อมประสิทธิภาพ

MLOps Deployment and Life Cycling

ปรับปรุงโมเดล

MLOps Deployment and Life Cycling

ปรับปรุงชุดข้อมูล

MLOps Deployment and Life Cycling

เน้นโมเดลเป็นศูนย์กลาง

MLOps Deployment and Life Cycling

เน้นข้อมูลเป็นศูนย์กลาง

1 https://datacentricai.org/
MLOps Deployment and Life Cycling

คุณภาพสำคัญกว่าปริมาณ

  • เพิ่ม feature ที่มีข้อมูลเกี่ยวข้อง
  • ได้ label ที่ดีขึ้น

 

Label == ค่าตัวแปร target ในชุดข้อมูลฝึก

คุณภาพ label == ความใกล้เคียงของ label กับค่าจริง

MLOps Deployment and Life Cycling

label ที่ไม่ดี

MLOps Deployment and Life Cycling

การทำนายที่ไม่ดี

MLOps Deployment and Life Cycling

ประโยชน์ของเครื่องมือ labeling

การติด label ด้วยตนเองนั้นซับซ้อน ใช้เวลานาน และเกิดข้อผิดพลาดได้ง่าย

ใช้เครื่องมือ labeling ที่ดี!

  • ติด label ได้มีประสิทธิภาพมากขึ้น
  • แม่นยำกว่าเดิม
  • UI เหมาะกับการใช้งาน
  • "ติด label ตัวอย่างเหล่านี้ก่อนเพื่อผลลัพธ์ที่ดีที่สุด"
  • "ดูเหมือนจะมีข้อผิดพลาดตรงนี้"

เครื่องมือ labeling

ตัวอย่าง: เครื่องมือติด label รูปภาพ สำหรับสร้าง image classifier

MLOps Deployment and Life Cycling

Human-in-the-Loop

MLOps Deployment and Life Cycling

HIL 2

MLOps Deployment and Life Cycling

ข้อมูลจากผู้เชี่ยวชาญ

MLOps Deployment and Life Cycling

MLOps Deployment and Life Cycling

เมื่อ label มาถึง

  • รัน ML build pipeline => โมเดลใหม่
  • ตรวจสอบว่าโมเดลใหม่ดีกว่าโมเดลเดิมหรือไม่
    • ใช่ => ทดสอบและ deploy
    • ไม่ใช่ => ค้นหาต่อไป
MLOps Deployment and Life Cycling

ค้นหาต่อไป

  • ลองโมเดลใหม่
  • ลอง feature ใหม่
  • ลองแหล่งข้อมูลใหม่

 

มีประโยชน์มาก: Metadata store (MLFlow Tracking ฯลฯ)

  • บันทึกกระบวนการเลือกโมเดล
  • หลีกเลี่ยงการทำการทดลองซ้ำ

 

ไม่ว่ากรณีใด: MLOps ช่วยให้บำรุงรักษาโมเดลได้รวดเร็วและมีประสิทธิภาพสูงสุด

MLOps Deployment and Life Cycling

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

MLOps Deployment and Life Cycling

Preparing Video For Download...