def buildHL0aTrainingSet(numOnes=5):
 numPatterns = 23
 p = getSimplePatterns(numOnes, numPatterns)
 s = []
 s.append(p[rgen.randint(3, 23)])
 for _ in xrange(20):
  s.append(p[rgen.randint(3, 23)])
  s.append(p[0])
  s.append(p[1])
  s.append(p[2])
  s.append(p[rgen.randint(3, 23)])
 return ([s], [[p[0], p[1], p[2]]])

def buildHL0aTrainingSet ( numOnes = 5 ) : numPatterns = 23 p = getSimplePatterns ( numOnes , numPatterns ) s = [ ] s . append ( p [ rgen . randint ( 3 , 23 ) ] ) for _ in xrange ( 20 ) : s . append ( p [ rgen . randint ( 3 , 23 ) ] ) s . append ( p [ 0 ] ) s . append ( p [ 1 ] ) s . append ( p [ 2 ] ) s . append ( p [ rgen . randint ( 3 , 23 ) ] ) return ( [ s ] , [ [ p [ 0 ] , p [ 1 ] , p [ 2 ] ] ] )
simple sequences for hl0 .