Skip to content

Commit

Permalink
minor removal of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelvin Xu committed Oct 22, 2014
1 parent 01acd4b commit da80254
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions experiments/nmt/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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()
Expand Down
1 change: 0 additions & 1 deletion groundhog/mainLoop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit da80254

Please sign in to comment.