Exploring models with multiple inputs or outputs
As we will see later, sometimes, it may interest us that our model feeds on information from different sources (multimodal) and/or predicts multiple targets at the same time (multitask). AutoKeras has a class called AutoModel that allows us to define several sources and targets as a list of parameters. Let's dive a little deeper into this before looking at a practical example.
What is AutoModel?
AutoModel is a class that allows us to define a model in a granular way by defining not only its inputs and outputs but also its intermediate layers.
It can be used in two different ways:
- Basic: Here, the input/output nodes are specified and AutoModel infers the remaining part of the model.
- Advanced: Here, the high-level architecture is defined by connecting the layers (blocks) with the Functional API, which is the same as the Keras functional API.
Let's look at an example of each one.