run_adaQN_free function

Run adaQN optimizer in free-mode

Run adaQN optimizer in free-mode

Run the next step of an adaQN optimization procedure, after the last requested calculation has been fed to the optimizer. When run for the first time, there is no request, so the function just needs to be run on the object as it is returned from function adaQN_free.

run_adaQN_free(optimizer, x, step_size)

Arguments

  • optimizer: An adaQN_free optimizer, for which its last request must have been served. Will be updated in-place.
  • x: Current values of the variables being optimized. Must be a numeric vector. Will be updated in-place.
  • step_size: Step size for the quasi-Newton update.

Returns

A request with the next piece of required information. The output will be a list with the following levels:

  • task Requested task (one of "calc_grad", "calc_fun_val_batch", "calc_grad_big_batch").

  • requested_on Values of x at which the requested information must be calculated.

  • info

    • x_changed_in_run Whether the x vector was updated.
    • iteration_number Current iteration number (in terms of quasi-Newton updates).
    • iteration_info Information about potential problems encountered during the iteration.

See Also

adaQN_free

  • Maintainer: David Cortes
  • License: BSD_2_clause + file LICENSE
  • Last published: 2021-09-26