def __init__(self, arg): super(myMTIS, self).__init__() prepare = rawData.splitRawData(arg) prepare.doBatch() self.myReg = regrmdup.prepross(prepare.splitedRawData()) self.myReg.proPredictor, self.myReg.trainYrs, self.myReg.coe, self.myReg.factor = [ 'ALL', ['2010', '2011'], 'Pearson', 'PR' ]
def __init__(self, arg): super(myMTIS, self).__init__() prepare = rawData.splitRawData(arg) prepare.doBatch() self.myReg = regrmdup.prepross(prepare.splitedRawData()) self.myReg.proPredictor, self.myReg.trainYrs, self.myReg.coe, self.myReg.factor = ['ALL', ['2010', '2011'], 'Pearson', 'PR']
#!/usr/bin/env python import regrmdup, rawData, sys, MTIS, Validate validate, mtis = False, False if validate: Validate.myValidate(sys.argv).doBatch() elif mtis: # build MTIS data MTIS.myMTIS(sys.argv).matrixBuilder() else: # compute thesis data prepare = rawData.splitRawData(sys.argv) prepare.doBatch() regrmdup.prepross(prepare.splitedRawData()).doBatch()
#!/usr/bin/env python import regrmdup, rawData, sys, MTIS, Validate validate, mtis, split = False, False, False if validate: Validate.myValidate(sys.argv).doBatch() elif mtis: # build MTIS data MTIS.myMTIS(sys.argv).matrixBuilder() elif split: prepare = rawData.splitRawData(sys.argv) prepare.doBatch() else: # compute thesis data prepare = rawData.splitRawData(sys.argv) prepare.doBatch() regrmdup.prepross(prepare.splitedRawData()).doBatch()