Artificial Neural Networks

Gradient Descent Algorithm

  1. 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).
  2. Initialize each w i to some small random value
  3. Until the termination condition is met, Do
    1. Initialize each Δ w i to zero.
    2. For each x ,t in training-examples, Do
      1. Input the instance x to the unit and compute the output o
      2. For each linear unit weight w i , Do Δ w i Δw i +η(t-o)x i
    3. For each linear unit weight w i , Do w i w i +Δw i

José M. Vidal .

14 of 33