Ejemplo n.º 1
0
 def _setUp(self):
     self.log.info('setting up')
     file.mkdirs(os.path.dirname(self.fout), safe=True)
     with open(self.fout, 'w', encoding='utf8') as tsvout:
         writer = csv.DictWriter(tsvout,
                                 delimiter='\t',
                                 fieldnames=self.tsv_headers)
         writer.writeheader()
     self.log.debug('max delay: {:d}'.format(self.max_delay))
     self.log.debug('max depth: {:d}'.format(self.max_depth))
     self.log.debug('output file: {:s}'.format(self.fout))
Ejemplo n.º 2
0
 def _setUp(self):
     self.log.info('setting up')
     file.mkdirs(self.outdir, safe=True)
Ejemplo n.º 3
0
 def _setUp(self):
     self.log.info('setting up')
     file.mkdirs(self.outdir, safe=True)
     self.log.info('creating trainset and testset: {}'.format(self.split))