133 noalias(m_avgGrad) = m_beta1 * m_avgGrad + (1-m_beta1) * m_derivative;
134 noalias(m_secondMoment) = m_beta2 * m_secondMoment + (1-m_beta2)*
sqr(m_derivative);
137 double bias1 = 1-std::pow(m_beta1,m_counter);
138 double bias2 = 1-std::pow(m_beta2,m_counter);
140 noalias(this->
m_best.
point) -= (m_eta/bias1) * m_avgGrad/(m_epsilon + sqrt(m_secondMoment/bias2));