def buildSimpleTrainingSet(numOnes=5):
 numPatterns = 11
 p = getSimplePatterns(numOnes, numPatterns)
 s1 = [p[0], p[1], p[2], p[3], p[4], p[5], p[6]]
 s2 = [p[7], p[8], p[2], p[3], p[4], p[9], p[10]]
 trainingSequences = [s1, s2]
 return (trainingSequences, 5)

def buildSimpleTrainingSet ( numOnes = 5 ) : numPatterns = 11 p = getSimplePatterns ( numOnes , numPatterns ) s1 = [ p [ 0 ] , p [ 1 ] , p [ 2 ] , p [ 3 ] , p [ 4 ] , p [ 5 ] , p [ 6 ] ] s2 = [ p [ 7 ] , p [ 8 ] , p [ 2 ] , p [ 3 ] , p [ 4 ] , p [ 9 ] , p [ 10 ] ] trainingSequences = [ s1 , s2 ] return ( trainingSequences , 5 )
two very simple high order sequences for debugging .