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