الخسارة كسطح نهبط عليه
تخيّل الخطأ على شكل تلال ووديان
الخسارة كسطح نهبط عليه درس مجاني في Deep Learning Academy على CoddyKit. هذا هو الدرس 1 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Deep Learning Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Deep Learning Academy 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
What Loss Measures
Your model's loss is a single number that says how wrong its predictions are. Smaller loss means better predictions. Training is just the quest to shrink it. 📉
Loss Depends on Weights
The same data gives different loss depending on your weights. Change a weight and the loss moves up or down. So loss is really a function of the weights.
loss = compute_loss(weights, data)Picture a Landscape
Imagine every weight setting as a spot on a hilly landscape, and the height at that spot is the loss. Training means walking downhill to lower ground.
The Valley Is the Goal
The lowest point in this landscape is the minimum: the weights where your model predicts best. Your whole job is to reach that valley floor.
One Weight, a Simple Curve
With a single weight, the landscape is just a 2D curve. You can literally plot loss against the weight and see the dip where loss is smallest.
def loss(w):
return (w - 3) ** 2Two Weights, a Surface
Add a second weight and the curve becomes a 3D surface with hills and valleys. Real models have millions of weights, so the landscape lives in millions of dimensions.
You Can't See It All
In high dimensions you can never view the whole landscape at once. You only feel the slope right under your feet and step accordingly.
Steep vs Flat Ground
A steep slope means loss changes fast here, so a small step helps a lot. Flat ground means you are near a valley or a plateau and progress slows.
Not Every Valley Is the Best
The landscape can have many dips. A local minimum is a small valley that traps you above the deepest one. Deep nets usually still train well anyway.
Descending the Landscape
The whole training algorithm is called gradient descent for a reason: you repeatedly step downhill on this loss landscape until you settle near the bottom.
Why the Metaphor Helps
Thinking of loss as terrain makes training intuitive: where am I, which way is down, and how big a step should I take? Every other idea builds on this picture.
Quick Check
Let's check the landscape picture.
Recap
Loss is a number that depends on your weights, so it forms a landscape of hills and valleys. Training means walking downhill toward the lowest loss you can find. 🏔️
تعلم 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 منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 1 من أصل 4.
كم من الوقت يستغرق درس «الخسارة كسطح نهبط عليه»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس Deep Learning Academy هذا؟
نعم. كل درس في Deep Learning Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- الخسارة كسطح نهبط عليه
- تشير التدرجات إلى الأعلى — لذا تحرّك في الاتجاه المعاكس
- معدل التعلّم: كبير جدًا، صغير جدًا، أو مناسب تمامًا
- تصغير دالة يدويًا باستخدام Python