Adding text description
As a first step to improve our clicker agent, we’ll add the text description of the problem into the model. I have already mentioned that some problems contain vital information that is provided in a text description, like the index of tabs that need to be clicked or the list of entries that the agent needs to check. The same information is shown at the top of the image observation, but pixels are not always the best representation of simple text.
To take this text into account, we need to extend our model’s input from an image only to an image and text data. We worked with text in the previous chapter, so a recurrent neural network (RNN) is quite an obvious choice (maybe not the best for such a toy problem, but it is flexible and scalable).
Implementation
In this section, we will just focus on the most important points of the implementation. You will find the whole code in the Chapter16/wob_click_mm_train.py module...