def claModelControlEnableSPLearningCb(claModel):
 assert isinstance(claModel, CLAModel)
 claModel._getSPRegion().setParameter('learningMode', True)
 return

def claModelControlEnableSPLearningCb ( claModel ) : assert isinstance ( claModel , CLAModel ) claModel . _getSPRegion ( ) . setParameter ( 'learningMode' , True ) return
enables learning in the cla models spatial pooler see also clamodelcontroldisablesplearningcb .