code: def _run_alg(self, max_iter):
          
  
          if self.progress:
              with ProgressBar(redirect_stdout=True, max_value=max_iter) as bar:
                  self._iterations(max_iter, bar=bar)
          else:
              self._iterations(max_iter)
docs: Run Algorithm
  
          Run the update step of a given algorithm up to the maximum number of
          iterations.
  
          Parameters
          ----------
          max_iter : int
              Maximum number of iterations