Skip to content
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

how to use the trained model after it built? #8

Open
mrmrn opened this issue Dec 25, 2017 · 0 comments
Open

how to use the trained model after it built? #8

mrmrn opened this issue Dec 25, 2017 · 0 comments

Comments

@mrmrn
Copy link

mrmrn commented Dec 25, 2017

I set epoch=1, and after training model how can I test the code? here is the output:


W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
117585
20750
Epoch   1/1 Batch    0/918 - Loss:  0.090, Seconds: 341.72
Epoch   1/1 Batch  100/918 - Loss:  3.188, Seconds: 359.53
Epoch   1/1 Batch  200/918 - Loss:  2.284, Seconds: 426.48
Epoch   1/1 Batch  300/918 - Loss:  2.204, Seconds: 422.31
Epoch   1/1 Batch  400/918 - Loss:  2.125, Seconds: 422.03
Valid Loss:  2.075, Seconds: 188.65
New Record!
Epoch   1/1 Batch  500/918 - Loss:  2.099, Seconds: 534.29
Epoch   1/1 Batch  600/918 - Loss:  2.116, Seconds: 769.90
Epoch   1/1 Batch  700/918 - Loss:  2.097, Seconds: 556.36
Epoch   1/1 Batch  800/918 - Loss:  2.081, Seconds: 622.04
Epoch   1/1 Batch  900/918 - Loss:  2.040, Seconds: 735.49
Valid Loss:  2.050, Seconds: 173.22
New Record!
Question
  Word Ids:      [5610, 3781, 2805, 7279, 1926]
  Input Words: ['irene', 'is', 'going', 'to', 'help']

Answer
  Word Ids:      [4776, 951, 7075, 8094]
  Response Words: ['i', 'am', 'sorry', '<EOS>']
as@asd ~/c/Chatbot-from-Movie-Dialogue> 

how can I test conversation with the bot?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant