←
^
→
Artificial Neural Networks
Gradient Descent Algorithm
Gradient-Descent
(training-examples,
η
)
Each training example is a pair of the form
⟨
x
⇀
,
t
⟩
, where
x
⇀
is the vector of input values, and
t
is the target output value.
η
is the learning rate (e.g., .05).
Initialize each
w
i
to some small random value
Until the termination condition is met, Do
Initialize each
Δ
w
i
to zero.
For each
⟨
x
⇀
,
t
⟩
in training-examples, Do
Input the instance
x
⇀
to the unit and compute the output
o
For each linear unit weight
w
i
, Do
Δ
w
i
←
Δ
w
i
+
η
(
t
-
o
)
x
i
For each linear unit weight
w
i
, Do
w
i
←
w
i
+
Δ
w
i
José M. Vidal
.
14 of 33