AQGD.update

AQGD.update(j, params, deriv, mprev)[source]

Updates the jth parameter based on the derivative and previous momentum

Parameters
  • j (int) – Index of the parameter to compute the derivative of.

  • params (array) – Current value of the parameters to evaluate the objective function at.

  • deriv (float) – Value of the derivative w.r.t. the jth parameter

  • mprev (array) – Array containing all of the parameter momentums

Returns

params, new momentums

Return type

tuple