update_fun: Update objective function value (adaQN)

Description Usage Arguments Value

View source: R/optimizers_free.R

Description

Update the (expected) value of the objective function in an 'adaQN_free' object, after it has been requested by the optimizer (do NOT update it otherwise).

Usage

1
update_fun(optimizer, fun)

Arguments

optimizer

An 'adaQN_free' object which after the last run had requested a new function evaluation.

fun

Function as evaluated (in expectation) on the values of 'x' that were returned in the request.

Value

No return value (object is updated in-place).


stochQN documentation built on Sept. 26, 2021, 9:07 a.m.

Related to update_fun in stochQN...