Open kldtz opened 6 years ago
There is a little issue in cs230-code-examples/tensorflow/nlp/evaluate.py: You use the dev set for evaluation:
cs230-code-examples/tensorflow/nlp/evaluate.py
path_eval_sentences = os.path.join(args.data_dir, 'dev/sentences.txt') path_eval_labels = os.path.join(args.data_dir, 'dev/labels.txt')
But later you iterate over the size of the test set:
params.eval_size = params.test_size
If the test set is larger than the dev set, this leads to an OutOfRangeError. If the test set is smaller than the dev set, the iteration stops too early.
Thanks for sharing the code!
There is a little issue in
cs230-code-examples/tensorflow/nlp/evaluate.py
: You use the dev set for evaluation:But later you iterate over the size of the test set:
If the test set is larger than the dev set, this leads to an OutOfRangeError. If the test set is smaller than the dev set, the iteration stops too early.
Thanks for sharing the code!