<s> import hybrid <EOL> from SynthModel import SynthModel <EOL> def setupSynthesize ( utils , CVPredictionPaths , testPredictionPaths , split , random , configModel , trials , modelList , mproc , processes ) : <EOL> processes = [ ] <EOL> for trial in range ( <NUM_LIT:0> , trials ) : <EOL> strTrial = str ( trial ) <EOL> p = mproc . Process ( target = synthSetupTrial , <EOL> args = ( utils . SYNTH_ORIGINAL_PATH , strTrial , <EOL> utils . HYBRID_BOOT_PATH , <EOL> utils . SYNTH_BOOT_PATH , <EOL> CVPredictionPaths [ trial ] , <EOL> testPredictionPaths [ trial ] , <EOL> split , random , <EOL> utils . bootsplit , <EOL> utils . grabCSVColumn , <EOL> hybrid . buildTrainingMatrixFromPredictions , <EOL> hybrid . buildPredictorMatrixFromPredictions , <EOL> hybrid . addHeader ) ) <EOL> p . start ( ) <EOL> processes . append ( p ) <EOL> synthModel = SynthModel ( configModel , utils , strTrial ) <EOL> modelList . append ( synthModel ) <EOL> for p in processes : <EOL> p . join ( ) <EOL> def synthSetupTrial ( synthOriginalPath , strTrial , hybridBootPath , synthBootPath , CVPredictionPaths , testPredictionPaths , split , random , bootsplitFunc , grabCSVColumnFunc , buildTrainingMatrixFromPredictionsFunc , buildPredictorMatrixFromPredictionsFunc , addHeaderFunc ) : <EOL> synthOriginal = synthOriginalPath + '<STR_LIT>' + strTrial <EOL> synthPredict = synthOriginalPath + '<STR_LIT>' + strTrial <EOL> bootCV = hybridBootPath + '<STR_LIT>' + strTrial + '<STR_LIT>' <EOL> buildTrainingMatrixFromPredictionsFunc ( bootCV , synthOriginal , <EOL> CVPredictionPaths , grabCSVColumnFunc , <NUM_LIT:0> ) <EOL> buildPredictorMatrixFromPredictionsFunc ( testPredictionPaths , <EOL> grabCSVColumnFunc , synthPredict + '<STR_LIT>' ) <EOL> bootsplitFunc ( synthOriginal , synthOriginal + '<STR_LIT>' , <EOL> synthBootPath + '<STR_LIT>' + strTrial + '<STR_LIT>' , <EOL> synthBootPath + '<STR_LIT>' + strTrial + '<STR_LIT>' , <EOL> split , random ) <EOL> addHeaderFunc ( synthBootPath + '<STR_LIT>' + strTrial + '<STR_LIT>' , <EOL> synthBootPath + '<STR_LIT>' + strTrial , False ) <EOL> addHeaderFunc ( synthBootPath + '<STR_LIT>' + strTrial + '<STR_LIT>' , <EOL> synthBootPath + '<STR_LIT>' + strTrial , False ) <EOL> addHeaderFunc ( synthPredict + '<STR_LIT>' , synthPredict , True ) </s>
