سادهترین شبکه عصبی پرسیپترونه: دو ورودی و یک خروجی.
مثل یاد دادن دروازه منطقی OR یا AND به ماشین. همه ورودیها به شبکه داده میشن، خروجی با جواب مقایسه میشه، وزنها تغییر میکنن تا جدول درست پیاده بشه.
اینجا کل چرخه یادگیری رو در کوچکترین مقیاس میبینیم:
ورودی ⬅️ جمع وزنی ⬅️ تابع فعالسازی ⬅️ خروجی ⬅️ خطا ⬅️ بهروزرسانی وزنها.
با کنار هم گذاشتن چند پرسیپترون ساده، به شبکههای چندلایه (MLP) میرسیم که میتونن تقریباً هر تابعی رو مدل کنن.
Building Our First Neural Network (Perceptron)
The simplest neural network is the Perceptron. Imagine two inputs feeding into one output neuron.
Training it on logic gates (like OR/AND) is the classic exercise. You feed in all possible inputs, compare the output to the truth table, and adjust weights until the perceptron reproduces the logic perfectly.
This shows the full learning cycle in miniature:
Inputs → weighted sum → activation → output → error → weight update.
From here, stacking multiple perceptrons leads to multi-layer networks, which can approximate almost any function.
🦴 @scopeofai | #concepts