class_docstr: @deprecated: Use TrialMetrics instead.
  
  Specifies a validation metric report that the trial reported.
class_docstr_tok: ["@","deprecated",":","Use","TrialMetrics","instead",".","Specifies","a","validation","metric","report","that","the","trial","reported","."]
code: def __init__(
      self, total_batches: Optional[int] = None, **kwargs: Any
  ):
      if total_batches is not None:
          kwargs["steps_completed"] = total_batches
      kwargs["group"] = util._LEGACY_VALIDATION
      super().__init__(**kwargs)
  
file_path: determined/harness/determined/common/experimental/metrics.py
imports: import dataclasses
  import datetime
  from typing import Any, Dict, List, Optional, cast
  from determined.common import util
  from determined.common.api import bindings
label_desc: Use image node_id 1 to create a new ValidationMetrics object from inherited base classes: TrialMetrics with example: obj = ValidationMetrics(total_batches)