A function which will do all the checks for AFF, check the parameters are in the proper ranges, etc. Does not return any values.
checkAFFargs(eta, functionName = "")
The value of the step size in the gradient descent. Must be finite, in range [0,1], etc.
The name of the original function which is being
called to check the parameters. Will help user
with debugging. Default is ""
, in which
case no function name will be displayed.