code: def stop_batch_learning(self):
          
          self._learning = False
  
          self.graph.commit()
          self.graph.cursor().execute("PRAGMA journal_mode=truncate")
          self.graph.ensure_indexes()
docs: Finish a series of batch learn operations.