Visualizing the model
Now, we can view a little summary of the architecture for the best generated model:
model = clf.export_model() model.summary()
Here is the output:
As we can see, AutoKeras, as we did in the classification example in Chapter 4, Image Classification and Regression Using AutoKeras, has chosen a convolution model (Conv1D) for this task. As we explained in the beginning of that chapter, this kind of architecture works really well when the order of the input sentences is not important for the prediction; there are no correlations between the different movie reviews.
Here is a visual representation of this:
As you already know, generating the models and choosing the best one is done by AutoKeras automatically, but let's explain these blocks in more detail.
Each block represents...