New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
training data was used to eval #157
Comments
Thank you. For the same epoch and batchsize, when I use _, _eval_summaries = sess.run([eval_init_op, eval_summaries]) ,eval/1/ BLEU = 41.36, 69.4/47.9/34.7/25.4 (BP=1.000, ration=1.028), however, when I use sess.run(eval_init_op) |
sess.run will use one batch to run all the operations in the array, meaning you run [eval_init_op, eval_summaries] with one batch from training data. after sess.run finished, the dataset was switch to eval dataset |
@bozhenhhu with further check of code, I think bleu score should not be affected by change above, bleu is calculated by 'hypothesis' which will run y_hat by eval data in either way the train data will only eval eval_summaries |
in train.py line 77
_, _eval_summaries = sess.run([eval_init_op, eval_summaries])
this line will execute eval_summaries with train data, do:
instead
The text was updated successfully, but these errors were encountered: