class_docstr: Base class for the heads, e.g. classification, regression.
  
  # Arguments
      loss: A Keras loss function. Defaults to None. If None, the loss will be
          inferred from the AutoModel.
      metrics: A list of Keras metrics. Defaults to None. If None, the metrics
          will be inferred from the AutoModel.
code: def build(self, hp, inputs=None):
      raise NotImplementedError
  
file_path: autokeras/autokeras/engine/head.py
imports: from typing import Optional
  from tensorflow import keras
  from autokeras.engine import io_hypermodel
  from autokeras.utils import types
label_desc: Use image node_id 4 for calling the Head obj's underlying member method code with example usage: obj.build(hp, inputs) without return types