0Pricing
Deep Learning Academy · درس

دالة الخطوة والقرارات الخطية

كيف يقسم perceptron فئتين

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

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

From Score to Decision

The weighted sum gives a score, but you often need a clean yes or no. A step function turns that raw score into a firm decision.

What the Step Does

The step function outputs 1 if the score is at or above zero, and 0 if it is below. No in-between, just on or off. ⚡

output = 1 if score >= 0 else 0

The Threshold

Zero is the threshold where the decision flips. Cross it and the neuron fires; stay below and it stays quiet.

Bias Moves the Threshold

Changing the bias slides that threshold. A larger bias makes the neuron fire more easily, a smaller one makes it harder.

A Line in the Data

With two inputs, the firing rule draws a straight line on a graph. Points on one side say yes, points on the other say no.

The Decision Boundary

That line is the decision boundary. It splits your feature space into two regions, one class on each side.

Weights Tilt the Line

The weights control the angle and steepness of the boundary. Adjusting them rotates the dividing line across your data.

Linear Means Straight

This is a linear decision: the boundary is always a straight line or flat plane. It cannot bend or curve around the data.

Linearly Separable Data

If one straight line can split your classes cleanly, the data is linearly separable. A single neuron handles this case perfectly.

The Hard Edge Problem

The step's hard edge jumps abruptly from 0 to 1. That sharp jump has no useful slope, which makes gradient-based learning tricky later.

A Tiny Classifier

Combine the weighted sum with a step and you have a working binary classifier in two short lines of Python.

score = w1 * x1 + w2 * x2 + b
label = 1 if score >= 0 else 0

Quick Check

Think about the shape a single neuron can carve.

Recap

The step function turns a score into 0 or 1 at a threshold. With two inputs it draws a straight decision boundary, splitting linearly separable data. 📏

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

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

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

ماذا ستتعلم في «دالة الخطوة والقرارات الخطية»؟

كيف يقسم perceptron فئتين تتمرن على Deep Learning Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.

هل أحتاج إلى خبرة سابقة لأبدأ Deep Learning Academy؟

لا تُشترط خبرة سابقة. Deep Learning Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 2 من أصل 4.

كم من الوقت يستغرق درس «دالة الخطوة والقرارات الخطية»؟

معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.

هل يمكنني كتابة وتشغيل أكواد في درس Deep Learning Academy هذا؟

نعم. كل درس في Deep Learning Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.

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

  1. الأوزان والانحياز والمجموع الموزون
  2. دالة الخطوة والقرارات الخطية
  3. برمجة Perceptron من الصفر
  4. مشكلة XOR: لماذا لا تكفي خلية عصبية واحدة
← العودة إلى Deep Learning Academy