حلقة التدريب بلغة واضحة
تنبّأ، وقِس الخطأ، وعدّل — ثم كرّر
حلقة التدريب بلغة واضحة درس مجاني في Deep Learning Academy على CoddyKit. هذا هو الدرس 4 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Deep Learning Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Deep Learning Academy 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
Learning Is a Loop
Every deep model learns the same way: a simple loop repeated thousands of times. Master this rhythm and the rest clicks into place. 🔁
Step One Predict
First the model makes a prediction. It takes your input, pushes it through its weights, and guesses an answer, even if that guess is rough at first.
Guesses Start Bad
At the very start the weights are random, so early predictions are basically noise. That is expected, and improving them is the whole point.
Step Two Measure Error
Next you compare the guess to the true answer and compute the loss, a single number showing how wrong the model was this time.
Loss Is the Compass
A high loss means a bad prediction, a low loss means a good one. The model's only goal is to push this number down, step by step.
Step Three Find the Fix
Then the model asks which way to nudge each weight to lower the loss. Those directions are the gradients, computed automatically for you.
Step Four Adjust
Finally the optimizer nudges every weight a tiny bit in the helpful direction. This small update makes the next prediction a little better.
Then Repeat
Predict, measure, adjust, then do it again on the next batch. Across many iterations the loss falls and the model slowly grows accurate.
One Epoch
When the loop has seen every training example once, you have finished one epoch. Most training runs through many epochs in a row.
The Loop in Code
In PyTorch the four steps map to four lines you will write again and again. Here is the core loop in plain code.
pred = model(x)
loss = loss_fn(pred, y)
loss.backward()
optimizer.step()Why It Feels Like Magic
No magic, just repetition. Tiny, guided adjustments over and over turn random weights into a model that genuinely understands your data.
Quick Check
What are the steps of one training loop iteration, in order?
Recap
You learned the core rhythm: predict, measure the loss, then adjust the weights, repeated over many epochs until the model gets good. 🎉
تعلم Python مع معلم ذكاء اصطناعي — مجانًا
اكتب وقم بتشغيل أكوادك الفعلية في المتصفح، واحصل على مساعدة فورية من معلم ذكاء اصطناعي متاح 24/7، واستمر من حيث توقفت على الويب أو في التطبيق.
- الدورات
- 30
- الدروس
- 120
الأسئلة الشائعة
هل درس «حلقة التدريب بلغة واضحة» مجاني؟
نعم — نص درس «حلقة التدريب بلغة واضحة» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Deep Learning Academy، انتقل إلى CoddyKit PRO. تتضمن دورة Deep Learning Academy 4 دروس في المجموع.
ماذا ستتعلم في «حلقة التدريب بلغة واضحة»؟
تنبّأ، وقِس الخطأ، وعدّل — ثم كرّر تتمرن على Deep Learning Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ Deep Learning Academy؟
لا تُشترط خبرة سابقة. Deep Learning Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 4 من أصل 4.
كم من الوقت يستغرق درس «حلقة التدريب بلغة واضحة»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس Deep Learning Academy هذا؟
نعم. كل درس في Deep Learning Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- الذكاء الاصطناعي مقابل تعلّم الآلة مقابل التعلّم العميق
- لماذا تتفوّق الشبكات العصبية على الميزات المصمَّمة يدويًا
- متى يتفوّق التعلّم العميق (ومتى لا يتفوّق)
- حلقة التدريب بلغة واضحة