From da802546f054eaec44a2b887f5d92123ef090d77 Mon Sep 17 00:00:00 2001 From: Kelvin Xu Date: Tue, 21 Oct 2014 21:06:29 -0400 Subject: [PATCH] minor removal of comments --- experiments/nmt/train.py | 6 ++---- groundhog/mainLoop.py | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/experiments/nmt/train.py b/experiments/nmt/train.py index 1b3a565..f1b7258 100755 --- a/experiments/nmt/train.py +++ b/experiments/nmt/train.py @@ -102,7 +102,6 @@ def __init__(self, state, lm_model, """ - # I should step in and see what this actually does. args = dict(locals()) args.pop('self') self.__dict__.update(**args) @@ -238,14 +237,13 @@ def main(): rng = numpy.random.RandomState(state['seed']) enc_dec = RNNEncoderDecoder(state, rng, args.skip_init) enc_dec.build() - # after this point lm is also embedded as a member of enc_dec lm_model = enc_dec.create_lm_model() # If we are going to use validation with the bleu script, we # will need early stopping bleu_validator = None - if state['bleu_script'] is not None and state['validation_set'] \ - and state['validation_set_grndtruth']: + if state['bleu_script'] is not None and state['validation_set'] is not None\ + and state['validation_set_grndtruth'] is not None: # make beam search beam_search = BeamSearch(enc_dec) beam_search.compile() diff --git a/groundhog/mainLoop.py b/groundhog/mainLoop.py index 2600bcf..f080447 100755 --- a/groundhog/mainLoop.py +++ b/groundhog/mainLoop.py @@ -154,7 +154,6 @@ def __init__(self, if self.channel is not None: self.channel.save() - # this is a hack and should be changed self.bleu_val_fn = bleu_val_fn self.hooks = hooks