Thuta Learning
ရှာဖွေရန်
BasicData & Databasesintermediate

ML Workflow Overview

စိတ်လျှော့ပါ။ ဒီခန်းကို စာအုပ်လိုမဟုတ်ဘဲ စကားပြောသလိုပဲ၊ နားလည်လွယ်အောင် ရှင်းပါမယ်။

ဒီခန်းပြီးရင် ဘာတတ်သွားမလဲ

  • ML Workflow Overview ကို ကြောက်စရာမလိုအောင် နားလည်မယ်
  • ကိုယ်တိုင် scikit-learn code ကို run ကြည့်တတ်မယ်
  • Real project ထဲမှာ ဒီ concept ကို ချက်ချင်း အသုံးချတတ်မယ်

ခဏလေး ဒီလိုပဲ စဉ်းစားကြည့်

Data Collection/Cleaning က pipeline ရဲ့ ပထမဆုံးအဆင့်ပါ — real-world data က missing value, duplicate, inconsistent format ပါလေ့ရှိလို့, model ကို feed ခင် clean လုပ်ရပါတယ်။ Train/Test Split က data ကို ၂ ပိုင်း ခွဲထားခြင်းပါ (training data ကို model ကို 'သင်ကြားပေး' ဖို့, test data ကို model ရဲ့ performance 'စစ်ဆေးမေးခွန်းစာရွက်' လိုမျိုး unseen data နဲ့ စစ်ဆေးဖို့)။ Model Training က algorithm ကို training data နဲ့ 'run' ပြီး pattern ကို learn စေခြင်းပါ။ Evaluation ကတော့ model ရဲ့ accuracy/performance ကို metric (Intermediate chapter) ဖြင့် measure ခြင်းပါ.

လက်တွေ့ scenario နဲ့ ချိတ်ကြည့်မယ်

House price prediction project (Project chapter) ကို ဒီ pipeline အတိုင်း run ရင် — (1) house data (size, location, price) ကို collect, (2) missing value/outlier ကို clean, (3) data ကို 80% training / 20% test ခွဲ, (4) algorithm (Linear Regression) ကို training data နဲ့ train, (5) test data ဖြင့် accuracy စစ်, (6) satisfied ဖြစ်ရင် production ထဲ deploy — ဒီ ၆ ဆင့်ကို tutorial တစ်လျှောက်လုံးမှာ ထပ်ခါထပ်ခါ တွေ့ရမှာပါ.

အတူတူ ကြည့်မယ်

text
ML Workflow
============

1. Data Collection    -> gather raw data
2. Data Cleaning       -> handle missing values, remove duplicates
3. Train/Test Split    -> e.g. 80% train, 20% test
4. Model Training       -> algorithm learns from training data
5. Evaluation           -> measure performance on TEST data (unseen)
6. Deployment           -> put the trained model into production use
You should see
ML workflow ရဲ့ ၆ ဆင့်ကို sequence အတိုင်း ရှင်းပြနိုင်မည်။

၅ မိနစ် စမ်းကြည့်

Netflix movie rating prediction project တစ်ခုအတွက် ဒီ ၆ ဆင့် pipeline ကို data example (user, movie, rating) နဲ့ ချိတ်ဆက် ရေးကြည့်ပါ။

သတိလေးတစ်ချက်

Deployment step ကို 'model train ပြီးရင် အလိုအလျောက် ပြီးတာပဲ' လို့ မထင်ပါနှင့် — production environment မှာ model ရဲ့ performance ကို monitor ပြီး, data pattern ပြောင်းလဲလာရင် (data drift) model ကို ပြန် retrain ရပါမယ်.

ဒီနေရာမှာ လူအများမှားတတ်တယ်

  • Test data ကို training အတွက် accidentally ထပ်သုံးမိခြင်း (data leakage) — model ရဲ့ real-world performance ကို overestimate ဖြစ်စေပါတယ်
  • Evaluation step ကို skip ပြီး, training accuracy ကိုပဲ ကြည့်ပြီး 'model ကောင်းတယ်' လို့ ယူဆခြင်း — training data ပေါ်မှာပဲ ကောင်းပြီး, unseen data ပေါ်မှာ ညံ့နိုင်ပါတယ် (overfitting, Intermediate chapter)

အခု ကိုယ်တိုင် စမ်းကြည့်

Netflix movie rating prediction project တစ်ခုအတွက် ဒီ ၆ ဆင့် pipeline ကို data example (user, movie, rating) နဲ့ ချိတ်ဆက် ရေးကြည့်ပါ။

You'll know it worked when: ML workflow ရဲ့ ၆ ဆင့်ကို sequence အတိုင်း ရှင်းပြနိုင်မည်။

ML Workflow Overview | Thuta Learning