99 Adam(
double beta1_in,
double beta2_in,
double epsilon_in,
double eta_in);
int update(Matrix_real ¶meters, Matrix_real &grad, const double &f0)
Call to set the number of gate blocks to be optimized in one shot.
int64_t iter_t
iteration index
double f0_prev
previous value of the cost function
parameter_num
[set adaptive gate structure]
int decreasing_idx
current index in the decreasing_vec array
Matrix_real f0_vec
vector stroing the lates values of cost function values to test local minimum
matrix_base< int > decreasing_vec
vector containing 1 if cost function decreased from previous value, and -1 if it increased ...
virtual ~Adam()
Destructor of the class.
double f0_mean
Mean of the latest cost function values to test local minimum.
void initialize_moment_and_variance(int parameter_num)
?????????????
double get_decreasing_test()
?????????????
Matrix_real var
variance parameter of the Adam algorithm
void reset()
?????????????
double beta2
parameter beta2 of the Adam algorithm
Adam()
Nullary constructor of the class.
Matrix_real mom
momentum parameter of the Adam algorithm
double beta1
parameter beta1 of the Adam algorithm
double decreasing_test
decreasing_test
int f0_idx
current index in the f0_vec array
A class for Adam optimization according to https://towardsdatascience.com/how-to-implement-an-adam-op...
Class to store data of complex arrays and its properties.
int num_threads
Store the number of OpenMP threads. (During the calculations OpenMP multithreading is turned off...