def claModelControlEnableTPLearningCb(claModel):
 assert isinstance(claModel, CLAModel)
 claModel._getTPRegion().setParameter('learningMode', True)
 return

def claModelControlEnableTPLearningCb ( claModel ) : assert isinstance ( claModel , CLAModel ) claModel . _getTPRegion ( ) . setParameter ( 'learningMode' , True ) return
enables learning in the cla models temporal pooler see also clamodelcontroldisabletplearningcb .