בינה מלאכותית RB108-6 : בינה מלאכותית – איך נוירון לומד
חלק א :
x = [-3, -2, -1, 0, 1, 2, 3]
y = [-5, -3, -1, 1, 3, 5, 7]
those are the true values :y = [-5, -3, -1, 1, 3, 5, 7]

1) The Neuron Model
The neuron predicts:
Starting values:
2) Forward Pass (Prediction)
For each x:
| x | y_true | y_predict |
|---|---|---|
| -3 | -5 | -3 |
| -2 | -3 | -2 |
| -1 | -1 | -1 |
| 0 | 1 | 0 |
| 1 | 3 | 1 |
| 2 | 5 | 2 |
| 3 | 7 | 3 |
3).Error , lost Function
we start w=1,b=0
y_true = w * x + b
y_predict = w * x + b
| x | y_true | y_predict = 1·x + 0 | error = y_predict – y_true | loss = (y_true – y_predict)² |
|---|---|---|---|---|
| -3 | -5 | -3 | +2 | 4 |
| -2 | -3 | -2 | +1 | 1 |
| -1 | -1 | -1 | 0 | 0 |
| 0 | 1 | 0 | -1 | 1 |
| 1 | 3 | 1 | -2 | 4 |
| 2 | 5 | 2 | -3 | 9 |
| 3 | 7 | 3 | -4 | 16 |