def _createTPs(numCols, cellsPerColumn=4, checkSynapseConsistency=True):
 minThreshold = 4
 activationThreshold = 4
 newSynapseCount = 5
 initialPerm = 0.6
 connectedPerm = 0.5
 permanenceInc = 0.1
 permanenceDec = 0.001
 globalDecay = 0.0
 if (VERBOSITY > 1):
  print 'Creating TP10X instance'
 cppTp = TP10X2(numberOfCols=numCols, cellsPerColumn=cellsPerColumn, initialPerm=initialPerm, connectedPerm=connectedPerm, minThreshold=minThreshold, newSynapseCount=newSynapseCount, permanenceInc=permanenceInc, permanenceDec=permanenceDec, activationThreshold=activationThreshold, globalDecay=globalDecay, burnIn=1, seed=SEED, verbosity=VERBOSITY, checkSynapseConsistency=checkSynapseConsistency, pamLength=1000)
 if (VERBOSITY > 1):
  print 'Creating PY TP instance'
 pyTp = TP(numberOfCols=numCols, cellsPerColumn=cellsPerColumn, initialPerm=initialPerm, connectedPerm=connectedPerm, minThreshold=minThreshold, newSynapseCount=newSynapseCount, permanenceInc=permanenceInc, permanenceDec=permanenceDec, activationThreshold=activationThreshold, globalDecay=globalDecay, burnIn=1, seed=SEED, verbosity=VERBOSITY, pamLength=1000)
 return (cppTp, pyTp)

def _createTPs ( numCols , cellsPerColumn = 4 , checkSynapseConsistency = True ) : minThreshold = 4 activationThreshold = 4 newSynapseCount = 5 initialPerm = 0.6 connectedPerm = 0.5 permanenceInc = 0.1 permanenceDec = 0.001 globalDecay = 0.0 if ( VERBOSITY > 1 ) : print 'Creating TP10X instance' cppTp = TP10X2 ( numberOfCols = numCols , cellsPerColumn = cellsPerColumn , initialPerm = initialPerm , connectedPerm = connectedPerm , minThreshold = minThreshold , newSynapseCount = newSynapseCount , permanenceInc = permanenceInc , permanenceDec = permanenceDec , activationThreshold = activationThreshold , globalDecay = globalDecay , burnIn = 1 , seed = SEED , verbosity = VERBOSITY , checkSynapseConsistency = checkSynapseConsistency , pamLength = 1000 ) if ( VERBOSITY > 1 ) : print 'Creating PY TP instance' pyTp = TP ( numberOfCols = numCols , cellsPerColumn = cellsPerColumn , initialPerm = initialPerm , connectedPerm = connectedPerm , minThreshold = minThreshold , newSynapseCount = newSynapseCount , permanenceInc = permanenceInc , permanenceDec = permanenceDec , activationThreshold = activationThreshold , globalDecay = globalDecay , burnIn = 1 , seed = SEED , verbosity = VERBOSITY , pamLength = 1000 ) return ( cppTp , pyTp )
create tp and tp10x instances with identical parameters .