قراءة الفجوة بين التدريب والتحقق
اكتشف فرط التكيّف من منحنيات الخسارة
قراءة الفجوة بين التدريب والتحقق درس مجاني في Deep Learning Academy على CoddyKit. هذا هو الدرس 1 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Deep Learning Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Deep Learning Academy 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
What Overfitting Means
Overfitting happens when your model memorizes the training data instead of learning patterns that work on new, unseen examples. 🧠
Two Curves to Watch
You track two losses: the training loss on data the model learns from, and the validation loss on data it never updates on.
The Train/Val Gap
The gap is the distance between training loss and validation loss. A small gap means your model generalizes well to fresh data.
A Healthy Fit
When both losses fall together and stay close, you have a good fit. The model is learning real structure, not noise.
Spotting Overfitting
Overfitting shows up as training loss still dropping while validation loss flattens or rises. The gap widens.
Spotting Underfitting
If both losses stay high and never improve much, the model is underfitting. It is too simple to capture the patterns.
Why You Need a Val Set
Training accuracy can lie. A separate validation set is your honest signal for how the model behaves on data it has not seen.
Log Both Losses
Record both losses every epoch so you can plot them. The shape of these curves tells you exactly what is going wrong.
train_losses.append(train_loss)
val_losses.append(val_loss)
print(epoch, train_loss, val_loss)The Overfitting Elbow
Watch for the elbow: the epoch where validation loss bottoms out and starts climbing. That is the moment overfitting begins.
More Data Helps
One of the simplest cures for a wide gap is more training data, which makes memorization harder and patterns clearer.
Gap Guides Your Fixes
The size of the gap tells you what to try next: regularize a wide gap, or grow the model when both losses stay high.
Quick Check
Read the curves and tell overfitting apart from a healthy fit.
Recap
You learned to read the train/val gap: close curves mean a good fit, a widening gap means overfitting, and both high means underfitting. 📈
الأسئلة الشائعة
هل درس «قراءة الفجوة بين التدريب والتحقق» مجاني؟
نعم — نص درس «قراءة الفجوة بين التدريب والتحقق» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Deep Learning Academy، انتقل إلى CoddyKit PRO. تتضمن دورة Deep Learning Academy 4 دروس في المجموع.
ماذا ستتعلم في «قراءة الفجوة بين التدريب والتحقق»؟
اكتشف فرط التكيّف من منحنيات الخسارة تتمرن على Deep Learning Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ Deep Learning Academy؟
لا تُشترط خبرة سابقة. Deep Learning Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 1 من أصل 4.
كم من الوقت يستغرق درس «قراءة الفجوة بين التدريب والتحقق»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس Deep Learning Academy هذا؟
نعم. كل درس في Deep Learning Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- قراءة الفجوة بين التدريب والتحقق
- Dropout: إسقاط الخلايا العصبية عشوائيًا
- Batch Norm وLayer Norm
- زيادة البيانات كبيانات مجانية