code: def _setLearningMode(self):
      
      for region in self.L4Regions:
        region.setParameter("learn", True)
      for region in self.L2Regions:
        region.setParameter("learningMode", True)
docs: Sets the learning mode.