def runModel(gymName, plot=False):
 print ('Creating model from %s...' % gymName)
 model = createModel(getModelParamsFromName(gymName))
 inputData = ('%s/%s.csv' % (DATA_DIR, gymName.replace(' ', '_')))
 runIoThroughNupic(inputData, model, gymName, plot)

def runModel ( gymName , plot = False ) : print ( 'Creating model from %s...' % gymName ) model = createModel ( getModelParamsFromName ( gymName ) ) inputData = ( '%s/%s.csv' % ( DATA_DIR , gymName . replace ( ' ' , '_' ) ) ) runIoThroughNupic ( inputData , model , gymName , plot )
assumes the gynname corresponds to both a like-named model_params file in the model_params directory .