code: def converged(self):
          
          # XXX we might want to check that ``logprob`` is non-decreasing.
          return (self.iter == self.n_iter or
                  (len(self.history) == 2 and
                   self.history[1] - self.history[0] < self.tol))
docs: ``True`` if the EM algorithm converged and ``False`` otherwise.