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 21, 2014
1 parent 01acd4b commit 48aed20
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 @@ -238,15 +238,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']:
# make beam search
if state['bleu_script'] is not None and state['validation_set'] is not None\
and state['validation_set_grndtruth'] is not None:
beam_search = BeamSearch(enc_dec)
beam_search.compile()
bleu_validator = BleuValidator(state, lm_model, beam_search, verbose=state['output_validation_set'])
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 48aed20

Please sign in to comment.