src/nupic/frameworks/opf/opf_task_driver.py
def enterPhase(self):
    """ [_IterationPhase method implementation]
    Performs initialization that is necessary upon entry to the phase. Must
    be called before handleInputRecord() at the beginning of each phase
    """
    super(_IterationPhaseLearnOnly, self).enterPhase()
    self.__model.enableLearning()
    self.__model.disableInference()
    return
def enterPhase(self):
    """ [_IterationPhase method implementation]
    Performs initialization that is necessary upon entry to the phase. Must
    be called before handleInputRecord() at the beginning of each phase
    """
    super(_IterationPhaseLearnOnly, self).enterPhase()
    self.__model.enableLearning()
    self.__model.disableInference()
    return
def enterPhase ( self ) : super ( _IterationPhaseLearnOnly , self ) . enterPhase ( ) self . __model . enableLearning ( ) self . __model . disableInference ( ) return
[_IterationPhase method implementation]
    Performs initialization that is necessary upon entry to the phase. Must
    be called before handleInputRecord() at the beginning of each phase
[ _IterationPhase method implementation ] Performs initialization that is necessary upon entry to the phase . Must be called before handleInputRecord () at the beginning of each phase