def getNumTestPatterns(short=0):
 if (short == 0):
  LOGGER.info('Running short tests')
  numPatterns = numpy.random.randint(300, 600)
  numClasses = numpy.random.randint(50, 150)
 elif (short == 1):
  LOGGER.info('\nRunning medium tests')
  numPatterns = numpy.random.randint(500, 1500)
  numClasses = numpy.random.randint(50, 150)
 else:
  LOGGER.info('\nRunning long tests')
  numPatterns = numpy.random.randint(500, 3000)
  numClasses = numpy.random.randint(30, 1000)
 LOGGER.info('number of patterns is %s', numPatterns)
 LOGGER.info('number of classes is %s', numClasses)
 return (numPatterns, numClasses)

def getNumTestPatterns ( short = 0 ) : if ( short == 0 ) : LOGGER . info ( 'Running short tests' ) numPatterns = numpy . random . randint ( 300 , 600 ) numClasses = numpy . random . randint ( 50 , 150 ) elif ( short == 1 ) : LOGGER . info ( '\nRunning medium tests' ) numPatterns = numpy . random . randint ( 500 , 1500 ) numClasses = numpy . random . randint ( 50 , 150 ) else : LOGGER . info ( '\nRunning long tests' ) numPatterns = numpy . random . randint ( 500 , 3000 ) numClasses = numpy . random . randint ( 30 , 1000 ) LOGGER . info ( 'number of patterns is %s' , numPatterns ) LOGGER . info ( 'number of classes is %s' , numClasses ) return ( numPatterns , numClasses )
return the number of patterns and classes the test should use .