Beispiel #1
0
 def run(self):
     make_dirs('output/summary/')
     call([
         'python3', 'qanta/reporting/performance.py', 'generate',
         c.PRED_TARGET.format(self.fold),
         c.META_TARGET.format(self.fold),
         'output/summary/{0}.json'.format(self.fold)
     ])
Beispiel #2
0
Datei: vw.py Projekt: xxlatgh/qb
 def run(self):
     make_dirs('output/models/')
     call([
         'vw',
         '-d', c.VW_INPUT.format('dev'),
         '-b', '30',
         '--loss_function', 'logistic',
         '-f', c.VW_MODEL
     ])
Beispiel #3
0
 def run(self):
     make_dirs('output/summary/')
     call([
         'python3',
         'qanta/reporting/performance.py',
         'generate',
         c.PRED_TARGET.format(self.fold),
         c.META_TARGET.format(self.fold),
         'output/summary/{0}.json'.format(self.fold)
     ])
Beispiel #4
0
Datei: all.py Projekt: NPSDC/qb
 def run(self):
     make_dirs("output/summary/")
     call([
         "python3",
         "qanta/reporting/performance.py",
         "generate",
         c.PRED_TARGET.format(self.fold),
         c.META_TARGET.format(self.fold),
         "output/summary/{0}.json".format(self.fold),
     ])
Beispiel #5
0
Datei: vw.py Projekt: xxlatgh/qb
 def run(self):
     make_dirs('output/predictions/')
     call([
         'vw',
         '-t',
         '--loss_function', 'logistic',
         '-d', c.VW_INPUT.format(self.fold),
         '-i', c.VW_MODEL,
         '-p', c.VW_PREDICTIONS.format(self.fold)
     ])
Beispiel #6
0
Datei: vw.py Projekt: xxlatgh/qb
 def run(self):
     call([
         'vw',
         '-t',
         '--loss_function', 'logistic',
         '-d', c.VW_INPUT.format('dev'),
         '-i', c.VW_MODEL,
         '--audit_regressor', c.VW_AUDIT_REGRESSOR
     ])
     df = parse_audit(c.VW_AUDIT_REGRESSOR)
     audit_report(df, c.VW_AUDIT_REGRESSOR_REPORT)
Beispiel #7
0
 def run(self):
     call([
         'vw',
         '-i',
         c.DOMAIN_MODEL_FORMAT.format(self.model_num),
         '-t',
         '-k',
         '--loss_function',
         'logistic',
         '-d',
         c.DOMAIN_TARGET_PREFIX + str(self.data_num),
         '-f',
         c.DOMAIN_MODEL_FORMAT.format(self.model_num),
         '-p',
         c.DOMAIN_PREDICTIONS_PREFIX + str(self.data_num),
     ])
Beispiel #8
0
 def run(self):
     call([
         'vw', '-d', c.DOMAIN_TARGET_PREFIX + str(self.group_num), '-k',
         '-q', 'tt', '-b', '28', '--loss_function', 'logistic', '-f',
         c.DOMAIN_MODEL_FORMAT.format(self.group_num)
     ])
Beispiel #9
0
Datei: vw.py Projekt: xxlatgh/qb
 def run(self):
     call(['bash', 'bin/vw_merge.sh', self.fold])