Esempio n. 1
0
    runModels.fixRun(mproc, modelList)

print("CVPredictionPaths is")
print(CVPredictionPaths)
print("testPredictionPaths is")
print(testPredictionPaths)

################### Setup Synthesize ###################

modelList = []

if config.SETUP_SYNTHESIZE:
    print("Setting up synthesis")
    synthesize.setupSynthesize(utils, CVPredictionPaths, testPredictionPaths,
                               config.BOOTSTRAP_SPLITS[2], random,
                               config.synthModel, config.TRIALS, modelList,
                               mproc, processes)

################### Run Synthesize #####################

CVPredictionPaths = []
testPredictionPaths = []

if config.RUN_SYNTHESIZE:
    print("Running synthesis")
    runModels.runModels(sproc, modelList, testPredictionPaths,
                        CVPredictionPaths, config.TRIALS, RMSEPaths, True)

    runModels.fixRun(mproc, modelList)

################### Post Process #################
Esempio n. 2
0
    runModels.fixRun(mproc,modelList)

print("CVPredictionPaths is")
print(CVPredictionPaths)
print("testPredictionPaths is")
print(testPredictionPaths)

################### Setup Synthesize ###################

modelList = []

if config.SETUP_SYNTHESIZE:
    print("Setting up synthesis")
    synthesize.setupSynthesize(utils,CVPredictionPaths,testPredictionPaths,
                               config.BOOTSTRAP_SPLITS[2],random,config.synthModel,
                               config.TRIALS,modelList,mproc,processes)

################### Run Synthesize #####################

CVPredictionPaths = []
testPredictionPaths = []

if config.RUN_SYNTHESIZE:
    print("Running synthesis")
    runModels.runModels(sproc,modelList,
                testPredictionPaths,CVPredictionPaths,
                config.TRIALS,RMSEPaths,True)

   
    runModels.fixRun(mproc,modelList)
if config.RUN_HYBRID:
    print("Running hybrid model")
    runModels.runModels(sproc,modelList,
                testPredictionPaths,CVPredictionPaths,
                config.TRIALS,RMSEPaths,False)


    runModels.fixRun(mproc,modelList)

################### Setup Synthesize ###################

modelList = []

if config.SETUP_SYNTHESIZE:
    print("Setting up synthesis")
    synthesize.setupSynthesize(utils,CVPredictionPaths,testPredictionPaths,config.synthModel,config.TRIALS,modelList,mproc,processes)

################### Run Synthesize #####################

CVPredictionPaths = []
testPredictionPaths = []

if config.RUN_SYNTHESIZE:
    print("Running synthesis")
    runModels.runModels(sproc,modelList,
                testPredictionPaths,CVPredictionPaths,
                config.TRIALS,RMSEPaths,True)

   
    runModels.fixRun(mproc,modelList)