1. 学习
  2. /
  3. 课程
  4. /
  5. Recurrent Neural Networks (RNNs) for Language Modeling with Keras

Connected

练习

GRU cells are better than simpleRNN

In this exercise you will re-run the same model as the first chapter of the course to compare the accuracy of the model by simpling changing the SimpleRNN cell to a GRU cell.

The model was already trained with 10 epochs, as in the previous model with a SimpleRNN cell. In order to compare the models, a test set (x_test, y_test) is already loaded in the environment, as well as the old model SimpleRNN_model.

说明

100 XP
  • Import the GRU cell.
  • Print the models' summaries.
  • Print the accuracy of each model.