def genTestSeqsForLookback(nPatterns=10, patternLen=500, patternActivity=50, seqLength=[5, 6, 7], nSequences=50):
 patterns = generateCoincMatrix(nCoinc=nPatterns, length=patternLen, activity=patternActivity)
 similarity = []
 for i in xrange(nPatterns):
  similarity.append(patterns.rightVecProd(patterns.getRow(i)))
 similarity = numpy.array(similarity, dtype='int32')
 print similarity
 seqList1 = generateSimpleSequences(nCoinc=nPatterns, seqLength=seqLength, nSeq=nSequences)
 seqList2 = copy.deepcopy(seqList1)
 for i in range(0, len(seqList2)):
  seqList2[i][0] = random.randint(0, (nPatterns - 1))
 return (seqList1, seqList2, patterns)

def genTestSeqsForLookback ( nPatterns = 10 , patternLen = 500 , patternActivity = 50 , seqLength = [ 5 , 6 , 7 ] , nSequences = 50 ) : patterns = generateCoincMatrix ( nCoinc = nPatterns , length = patternLen , activity = patternActivity ) similarity = [ ] for i in xrange ( nPatterns ) : similarity . append ( patterns . rightVecProd ( patterns . getRow ( i ) ) ) similarity = numpy . array ( similarity , dtype = 'int32' ) print similarity seqList1 = generateSimpleSequences ( nCoinc = nPatterns , seqLength = seqLength , nSeq = nSequences ) seqList2 = copy . deepcopy ( seqList1 ) for i in range ( 0 , len ( seqList2 ) ) : seqList2 [ i ] [ 0 ] = random . randint ( 0 , ( nPatterns - 1 ) ) return ( seqList1 , seqList2 , patterns )
generate two sets of sequences .