Performance optimization tips and best practices

Now that we've obtained the test data's movie review classification accuracy, that is, 79%, we can work on improving this accuracy even further. Arriving at such an improvement may involve experimenting with the parameters in the model's architecture, the parameters that were used when we compiled the model, and/or the settings that were used while we were fitting a model. In this section, we will carry out an experiment by changing the maximum length of the sequence of words and, at the same time, use a different optimizer compared to what we used in the previous model.

Get Advanced Deep Learning with R now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.