Skip to Content
Deep Learning Quick Reference
book

Deep Learning Quick Reference

by Mike Bernico
March 2018
Intermediate to advanced
272 pages
7h 53m
English
Packt Publishing
Content preview from Deep Learning Quick Reference

Inference

Now that we have a trained model, we're going to actually generate some translations.

Overall, the steps for inference are as follows:

  1. Load the data and vectorize again (we need the character to index mappings and a few translations to test with)
  2. Using the character to index dictionaries, we will create reverse index to character dictionaries, so we can get back from numbers to characters once we predict the proper character
  3. Pick some input sequence to translate, then run it through the encoder, obtaining the states
  4. Send the states and the <SOS> character, '\t', to the decoder.
  5. Loop, getting each next character, until the decoder generates an <EOS> or '\n'
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Keras Deep Learning Cookbook

Keras Deep Learning Cookbook

Rajdeep Dua, Sujit Pal, Manpreet Singh Ghotra
Deep Learning with Keras

Deep Learning with Keras

Antonio Gulli, Sujit Pal

Publisher Resources

ISBN: 9781788837996Supplemental Content