def buildHL0aTrainingSet(numOnes=<NUM_LIT:5>):
numPatterns = <NUM_LIT><EOL>p = getSimplePatterns(numOnes, numPatterns)<EOL>s = []<EOL>s.append(p[rgen.randint(<NUM_LIT:3>,<NUM_LIT>)])<EOL>for _ in range(<NUM_LIT:20>):<EOL><INDENT>s.append(p[rgen.randint(<NUM_LIT:3>,<NUM_LIT>)])<EOL>s.append(p[<NUM_LIT:0>])<EOL>s.append(p[<NUM_LIT:1>])<EOL>s.append(p[<NUM_LIT:2>])<EOL>s.append(p[rgen.randint(<NUM_LIT:3>,<NUM_LIT>)])<EOL><DEDENT>return ([s], [[p[<NUM_LIT:0>], p[<NUM_LIT:1>], p[<NUM_LIT:2>]]])<EOL>
Simple sequences for HL0. Each pattern in the sequence has a series of 1's
    in a specific set of columns.
      There are 23 patterns, p0 to p22.
      The sequence we want to learn is p0->p1->p2
      We create a very long sequence consisting of N N p0 p1 p2 N N p0 p1 p2
      N is randomly chosen from p3 to p22