class_docstr: ``TrainContext`` gives access to report training and validation metrics to the Determined master
  during trial tasks.
class_docstr_tok: ["``","TrainContext","``","gives","access","to","report","training","and","validation","metrics","to","the","Determined","master","during","trial","tasks","."]
docstr: Report metrics data to the master.
  
  Arguments:
      group (string): metrics group name. Can be used to partition metrics
          into different logical groups or time series.
          "training" and "validation" group names map to built-in training
          and validation time series. Note: Group cannot contain ``.`` character.
      steps_completed (int): global step number, e.g. the number of batches processed.
      metrics (Dict[str, Any]): metrics data dictionary. Must be JSON-serializable.
          When reporting metrics with the same ``group`` and ``steps_completed`` values,
          the dictionary keys must not overlap.
docstr_tok: ["Report","metrics","data","to","the","master",".","Arguments",":","group","(","string",")",":","metrics","group","name",".","Can","be","used","to","partition","metrics","into","different","logical","groups","or","time","series",".","``","training","''","and","``","validation","''","group","names","map","to","built-in","training","and","validation","time","series",".","Note",":","Group","can","not","contain","``",".","``","character",".","steps_completed","(","int",")",":","global","step","number",",","e.g",".","the","number","of","batches","processed",".","metrics","(","Dict","[","str",",","Any","]",")",":","metrics","data","dictionary",".","Must","be","JSON-serializable",".","When","reporting","metrics","with","the","same","``","group","``","and","``","steps_completed","``","values",",","the","dictionary","keys","must","not","overlap","."]
code: def report_metrics(
      self,
      group: str,
      steps_completed: int,
      metrics: Dict[str, Any],
  ) -> None:
      """
      Report metrics data to the master.
  
      Arguments:
          group (string): metrics group name. Can be used to partition metrics
              into different logical groups or time series.
              "training" and "validation" group names map to built-in training
              and validation time series. Note: Group cannot contain ``.`` character.
          steps_completed (int): global step number, e.g. the number of batches processed.
          metrics (Dict[str, Any]): metrics data dictionary. Must be JSON-serializable.
              When reporting metrics with the same ``group`` and ``steps_completed`` values,
              the dictionary keys must not overlap.
      """
      logger.info(
          f"report_metrics(group={group}, steps_completed={steps_completed}, metrics={metrics})"
      )
      self._report_trial_metrics(group, steps_completed, metrics)
  
imports: import enum
  import logging
  import pathlib
  from typing import Any, Callable, Dict, List, Optional, Set
  import determined
  from determined import core, tensorboard
  from determined.common import api, util
  from determined.common.api import bindings, errors
label_desc: Use image node_id 7 for calling the TrainContext obj's underlying member method code with example usage: obj.report_metrics(group, steps_completed, metrics) without return types