The MATLAB code below implements the second-order SPSA (simultaneous perturbation stochastic approximation) and second-order SG (stochastic gradient) in an efficient manner, such that the FLOPS-per-iteration is reduced from
If you find it useful, please consider citing our IEEE TNNLS article link. Thanks!