0Pricing
Deep Learning Academy · درس

لماذا تفتح اللاخطية المجال للقوة الحقيقية

يظل تكديس الطبقات الخطية خطيًا من دونها

لماذا تفتح اللاخطية المجال للقوة الحقيقية درس مجاني في Deep Learning Academy على CoddyKit. هذا هو الدرس 1 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Deep Learning Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Deep Learning Academy 4 دروس في المجموع.

بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.

Linear All the Way Down

A neural layer is just a weighted sum: it scales and shifts its inputs. On its own, that operation is perfectly linear. 📏

Stacking Doesn't Help

Here is the catch: stacking two linear layers just gives you another linear layer. No matter how many you stack, the result stays a single straight line.

See It in Math

Two linear steps collapse into one. The combined weight is simply the product of the two weight matrices, so depth buys you nothing here.

y = W2 @ (W1 @ x)
# same as y = (W2 @ W1) @ x  -> one linear map

Enter Nonlinearity

An activation function bends the signal between layers. That small kink is what stops layers from collapsing into one.

Why the Bend Matters

Once you insert a nonlinearity, each layer can reshape the data differently. Now depth actually adds power instead of repeating the same map.

Curves, Not Just Lines

With nonlinearity, your network can carve out curved decision boundaries. A plain linear model can only ever draw a straight cut.

The Universal Promise

Enough neurons plus a nonlinearity can approximate almost any function. This is the famous universal approximation idea. ✨

Where It Goes

You place the activation right after each linear layer, inside the forward pass. It transforms the layer's output before the next layer sees it.

import torch.nn.functional as F
h = F.relu(linear1(x))   # nonlinearity after the linear step

Solving the Real World

Images, speech, and language are deeply nonlinear patterns. Only a network that can bend can hope to model them well.

No Activation, No Depth

Forget the activation and your fancy deep model quietly becomes a single linear regression in disguise. The depth is wasted.

Pick One Per Layer

You usually apply the same activation after every hidden layer, then choose a special one at the output to match your task.

Quick Check

Think about what happens without any activation function.

Recap

Stacked linear layers stay linear, so they cannot model curves. Inserting a nonlinearity unlocks depth and lets your network learn rich, real-world patterns. 🎯

الأسئلة الشائعة

هل درس «لماذا تفتح اللاخطية المجال للقوة الحقيقية» مجاني؟

نعم — نص درس «لماذا تفتح اللاخطية المجال للقوة الحقيقية» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 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 يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.

جميع الدروس في هذه الدورة

  1. لماذا تفتح اللاخطية المجال للقوة الحقيقية
  2. ReLU وشقيقتاها Leaky وGELU
  3. Sigmoid وTanh: حصر القيم ضمن نطاق
  4. Softmax للاحتمالات
← العودة إلى Deep Learning Academy