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"
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"
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"