Example #1
0
File: tune.py Project: viksit/ucca
 def run(self):
     assert Config().args.train and Config().args.passages or Config().args.folds, \
         "insufficient parameters given to parser"
     print("Running with %s" % self)
     Config().learning_rate = self.learning_rate
     Config().decay_factor = self.decay_factor
     self.scores = parse.main()
     assert self.score is not None, "parser failed to produce score"
Example #2
0
 def run(self):
     assert Config().args.train and Config().args.passages or Config().args.folds, \
         "insufficient parameters given to parser"
     print("Running with %s" % self)
     for name, value in self.params.items():
         setattr(Config().args, name, value)
     self.scores = parse.main()
     assert self.score is not None, "parser failed to produce score"
Example #3
0
File: tune.py Project: borgr/ucca
 def run(self):
     assert (
         Config().args.train and Config().args.passages or Config().args.folds
     ), "insufficient parameters given to parser"
     print("Running with %s" % self)
     Config().learning_rate = self.learning_rate
     Config().decay_factor = self.decay_factor
     self.scores = parse.main()
     assert self.score is not None, "parser failed to produce score"