docstr: Short summary.
  
  Args:
      reporters (Dict[str, MetricReporter]):
          Dictionary of sub-task metric-reporters.
      target_task_name (Optional[str]):
          Dev metric for this task will be used to select best epoch.
  
  Returns:
      None: Description of returned object.
docstr_tok: ["Short","summary",".","Args",":","reporters","(","Dict","[","str",",","MetricReporter","]",")",":","Dictionary","of","sub-task","metric-reporters",".","target_task_name","(","Optional","[","str","]",")",":","Dev","metric","for","this","task","will","be","used","to","select","best","epoch",".","Returns",":","None",":","Description","of","returned","object","."]
code: def __init__(
      self,
      reporters: Dict[str, MetricReporter],
      loss_weights: Dict[str, float],
      target_task_name: Optional[str],
      use_subtask_select_metric: bool,
  ) -> None:
      """Short summary.
  
      Args:
          reporters (Dict[str, MetricReporter]):
              Dictionary of sub-task metric-reporters.
          target_task_name (Optional[str]):
              Dev metric for this task will be used to select best epoch.
  
      Returns:
          None: Description of returned object.
  
      """
  
      super().__init__(None)
      self.reporters = reporters
      self.target_task_name = target_task_name or ""
      self.target_reporter = self.reporters.get(
          self.target_task_name, None
      )
      self.loss_weights = loss_weights
      self.use_subtask_select_metric = use_subtask_select_metric
  
file_path: pytext/pytext/metric_reporters/disjoint_multitask_metric_reporter.py
imports: from typing import Dict, Optional
  from pytext.common.constants import BatchContext
  from .metric_reporter import MetricReporter
label_desc: Use image node_id 1 to create a new DisjointMultitaskMetricReporter object from inherited base classes: MetricReporter with example: obj = DisjointMultitaskMetricReporter(reporters, loss_weights, target_task_name, use_subtask_select_metric)