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 from_config(cls, config):
      config["loss"] = deserialize_loss(config["loss"])
      config["metrics"] = deserialize_metrics(config["metrics"])
      return super().from_config(config)
  
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 3 for calling the Head obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: super