Skip to content

Commit

Permalink
go back to python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
suriyadeepan committed Mar 8, 2017
1 parent 9c5eeca commit 312021e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.markdown
@@ -1,6 +1,6 @@
# Augmented Seq2seq

![](https://img.shields.io/badge/python-3.6-brightgreen.svg) ![](https://img.shields.io/badge/tensorflow-1.0.0-green.svg) ![](https://img.shields.io/badge/nltk-3.2.2-yellowgreen.svg)
![](https://img.shields.io/badge/python-3-brightgreen.svg) ![](https://img.shields.io/badge/tensorflow-1.0.0-green.svg) ![](https://img.shields.io/badge/nltk-3.2.2-yellowgreen.svg)

- [x] [Vanilla Seq2seq](/vanilla.py)
- [x] [Conditioning decoder on external context](/contextual.py)
Expand Down
6 changes: 3 additions & 3 deletions bi_encoder.py
Expand Up @@ -210,17 +210,17 @@ def fetch_dict(datagen, keep_prob=0.5):
)
mean_loss += l

print(f'>> [{j}] train loss at : {mean_loss/n}')
print('>> [{j}] train loss at : {}'.format(mean_loss/n))
saver.save(sess, self.ckpt_path + self.model_name + '.ckpt', global_step=i)
#
# evaluate
testloss = sess.run([self.loss],
feed_dict = fetch_dict(testset, keep_prob=1.)
)
print(f'test loss : {testloss}')
print('test loss : {}'.format(testloss))

except KeyboardInterrupt:
print(f'\n>> Interrupted by user at iteration {j}')
print('\n>> Interrupted by user at iteration {}'.format(j))


if __name__ == '__main__':
Expand Down

0 comments on commit 312021e

Please sign in to comment.