class_docstr: Base Task, shouldn't be used directly.
class_docstr_tok: ["Base","Task",",","should","n't","be","used","directly","."]
docstr: Base task constructor.
  
  :param loss: By default the first loss in available losses.
  :param metrics:
docstr_tok: ["Base","task","constructor",".",":","param","loss",":","By","default","the","first","loss","in","available","losses",".",":","param","metrics",":"]
code: def __init__(self, loss=None, metrics=None):
      """
      Base task constructor.
  
      :param loss: By default the first loss in available losses.
      :param metrics:
      """
      self._loss = loss
      self._metrics = self._convert_metrics(metrics)
      self._assure_loss()
      self._assure_metrics()
  
file_path: MatchZoo/matchzoo/engine/base_task.py
imports: import typing
  import abc
  from matchzoo.engine import base_metric
  from matchzoo.engine import parse_metric
label_desc: Use image node_id 1 to create a new BaseTask object from inherited base classes: abc with example: obj = BaseTask(loss, metrics)