(self)
Evaluate costs on samples, and adjust the step size.
Evaluate costs on samples, and adjust the step size.
Evaluate costs on samples and adjust the step size .
def _update_step_size(self):
        """ Evaluate costs on samples, and adjust the step size. """
        # Evaluate cost function for all conditions and samples.
        for m in range(self.M):
            self._eval_cost(m)

        # Adjust step size relative to the previous iteration.
        for m in range(self.M):
            if self.iteration_count >= 1 and self.prev[m].sample_list:
                self._stepadjust(m)
def _update_step_size ( self ) : # Evaluate cost function for all conditions and samples. for m in range ( self . M ) : self . _eval_cost ( m ) # Adjust step size relative to the previous iteration. for m in range ( self . M ) : if self . iteration_count >= 1 and self . prev [ m ] . sample_list : self . _stepadjust ( m )