Beispiel #1
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)
     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"
Beispiel #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"
Beispiel #3
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)
     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"