21CT logo

လေ့လာတဲ့ဒေတာနဲ့ စမ်းသပ်တဲ့ဒေတာ | Train and Test in ML

Machine learning ကို မေးခွန်းကတ်လေ့ကျင့်ခန်းဖြင့် စတင်နားလည်ပါ။ Explore held-out testing with a simple card exercise.

21CT Admin5 min read10/24/2026
လေ့လာတဲ့ဒေတာနဲ့ စမ်းသပ်တဲ့ဒေတာ | Train and Test in ML
#Python#Machine Learning#Learning
မြန်မာ — လေ့ကျင့်ပြီးမှ သီးခြားစမ်းမယ် စာမေးပွဲကို ဥပမာယူကြည့်ပါ။ လေ့ကျင့်မေးခွန်း အဖြေကို မှတ်မိတာနဲ့ မတွေ့ဖူးတဲ့ မေးခွန်းကို ဖြေနိုင်တာက မတူပါဘူး။ ဒီဥပမာက machine learning ရဲ့ training နဲ့ testing ရည်ရွယ်ချက်ကို စတင်နားလည်ဖို့ ကူညီနိုင်ပါတယ်။ Training data နဲ့ model ကို လေ့လာစေပြီး သီးခြားထားတဲ့ test data နဲ့ အကဲဖြတ်ပါတယ်။ Test information က training ထဲ ဝင်သွားရင် data leakage ဖြစ်နိုင်ပြီး ခန့်မှန်းရလဒ်ကို အမှန်ထက်ကောင်းသလို ထင်စေနိုင်ပါတယ်။ Preprocessing လေ့လာရာမှာလည်း training data ကိုပဲ သုံးရပါတယ်။ ကတ်လေ့ကျင့်ခန်း — ကိုယ်ဖန်တီးထားတဲ့ ပစ္စည်းပုံစံကတ် ရှစ်ကတ်ရေးပါ။ တစ်ကတ်စီမှာ အရောင်နဲ့ ပုံသဏ္ဌာန် ထည့်ပါ။ ကတ်နှစ်ကတ်ကို မကြည့်ဘဲ ခဏဖယ်ထားပြီး ကျန်ကတ်တွေနဲ့ ကိုယ်တိုင် rule တစ်ခုရေးပါ။ ပြီးမှ ဖယ်ထားတဲ့ကတ်တွေကို ကြည့်ပြီး rule က ဘယ်နေရာမှာ မကိုက်သလဲ မှတ်ပါ။ ဒါဟာ သဘောတရား လေ့ကျင့်ခန်းသာဖြစ်ပြီး စစ်မှန်တဲ့ model performance အထောက်အထား မဟုတ်ပါဘူး။ ပြန်လေ့လာရန် — Test အဖြေကိုကြည့်ပြီး rule ကို ထပ်ခါထပ်ခါပြင်နေရင် အဲဒီကတ်တွေကို မတွေ့ဖူးတဲ့ စမ်းသပ်ကတ်လို့ ဆက်ယူဆလို့ မရတော့ပါဘူး။ မအောင်မြင်တဲ့ နမူနာကိုပါ မှတ်တမ်းတင်တတ်ဖို့ လေ့ကျင့်ပါ။ English — Learn first, evaluate separately Remembering practice answers is different from handling unseen questions. That analogy introduces the purpose of training and testing in machine learning. A model learns from training data and is evaluated on held-out test data. Test information leaking into training can produce overly optimistic results. Learned preprocessing must also use training data rather than the test set. Card exercise: invent eight cards describing objects by colour and shape. Set two aside without inspecting them. Use the others to write a rule, then inspect the held-out cards and record where the rule fails. This is a conceptual activity, not evidence of real model performance. Reflection: if you repeatedly inspect those test answers and revise your rule, they no longer act as untouched examples. Record the failures as carefully as the successes. The useful habit is separating learning from evaluation, rather than chasing a flattering score. Primary reference / မူရင်းရင်းမြစ် scikit-learn — Common pitfalls and recommended practices, data leakage: https://scikit-learn.org/stable/common_pitfalls.html Cover: original AI-generated educational illustration for 21CT; no accuracy or performance claim.

ဆွေးနွေးမှုတွင် ပါဝင်ပါ

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

မဲများမှာ အမည်မသိ အကြံပြုချက် စုစုပေါင်းဖြစ်ပြီး လူဦးရေ မဟုတ်ပါ။ ဧည့်သည် ID နှင့် မဲပေး cookie မသုံးပါ။

စာလုံးရေ ၂,၀၀၀ အထိ ရေးနိုင်ပါသည်။ မှတ်ချက်များကို အများမြင်နိုင်ပါသည်။

မှတ်ချက်များ (၀)

မှတ်ချက် မရှိသေးပါ။ ပထမဆုံး ဆွေးနွေးသူ ဖြစ်ပါစေ။

21CT မှ သင်တန်းအကြံပြုချက်

ဒီအကြောင်းအရာကို လက်တွေ့သင်တန်းအနေနဲ့ ဆက်လေ့လာချင်ပါက course catalog ကိုကြည့်ပါ။

Related articles

ဝက်ဘ်ဆိုက်တစ်ခု ဖွင့်လိုက်တဲ့အခါ နောက်ကွယ်မှာ ဘာတွေဖြစ်နေသလဲ
နည်းပညာအခြေခံအထူးရွေးချယ်မှု

ဝက်ဘ်ဆိုက်တစ်ခု ဖွင့်လိုက်တဲ့အခါ နောက်ကွယ်မှာ ဘာတွေဖြစ်နေသလဲ

Browser၊ DNS၊ server နဲ့ HTTPS တို့ရဲ့ အလုပ်လုပ်ပုံကို ရိုးရှင်းတဲ့ ဥပမာနဲ့ လေ့လာပြီး အင်တာနက်ပြဿနာကို အဆင့်လိုက် စစ်ဆေးကြည့်ပါ။

21CT Admin 7 မိနစ် ဖတ်ရန်