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 validation metrics to the master.
  Note that for hyperparameter search, this is independent of the need to report the searcher
  metric using ``SearcherOperation.report_completed()`` in the Searcher API.
docstr_tok: ["Report","validation","metrics","to","the","master",".","Note","that","for","hyperparameter","search",",","this","is","independent","of","the","need","to","report","the","searcher","metric","using","``","SearcherOperation.report_completed","(",")","``","in","the","Searcher","API","."]
code: def report_validation_metrics(
      self,
      steps_completed: int,
      metrics: Dict[str, Any],
  ) -> None:
      """
      Report validation metrics to the master.
      Note that for hyperparameter search, this is independent of the need to report the searcher
      metric using ``SearcherOperation.report_completed()`` in the Searcher API.
      """
  
      logger.info(
          f"report_validation_metrics(steps_completed={steps_completed}, metrics={metrics})"
      )
      self._report_trial_metrics(
          util._LEGACY_VALIDATION, 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 6 for calling the TrainContext obj's underlying member method code with example usage: obj.report_validation_metrics(steps_completed, metrics) without return types