НачатьНачать бесплатно

Test your model!

The function you just built, predict_text(), is ready to use. Remember that the model object is already passed by default as the second parameter so you just need to provide the function with your 3 word sentences.

Try out these strings on your LSTM model:

  • 'meet revenge with'
  • 'the course of'
  • 'strength of the'

Which sentence could be made with the word output from the sentences above?

Это упражнение является частью курса

Introduction to Deep Learning with Keras

Посмотреть курс

Практическое интерактивное упражнение

Превратите теорию в практику с помощью одного из наших интерактивных упражнений

Начать упражнение