def initTargetSet(schemata, size):
 test_set = []
 for _ in range(size):
  test = list((random.randint(0, 1) for _ in range(len(schemata))))
  for (i, x) in enumerate(schemata):
   if (x == '0'):
    test[i] = 0
   elif (x == '1'):
    test[i] = 1
  test_set.append(test)
 return test_set

def initTargetSet ( schemata , size ) : test_set = [ ] for _ in range ( size ) : test = list ( ( random . randint ( 0 , 1 ) for _ in range ( len ( schemata ) ) ) ) for ( i , x ) in enumerate ( schemata ) : if ( x == '0' ) : test [ i ] = 0 elif ( x == '1' ) : test [ i ] = 1 test_set . append ( test ) return test_set
initialize a target set with noisy string to match based on the schematas provided .