class_docstr: Metric object.
class_docstr_tok: ["Metric","object","."]
code: def __init__(
      self,
      name: str,
      step_metric: Optional[str] = None,
      step_sync: Optional[bool] = None,
      hidden: Optional[bool] = None,
      summary: Optional[Sequence[str]] = None,
      goal: Optional[str] = None,
      overwrite: Optional[bool] = None,
  ) -> None:
      self._callback = None
      self._name = name
      self._step_metric = step_metric
      # default to step_sync=True if step metric is set
      step_sync = (
          step_sync
          if step_sync is not None
          else step_metric is not None
      )
      self._step_sync = step_sync
      self._hidden = hidden
      self._summary = summary
      self._goal = goal
      self._overwrite = overwrite
  
file_path: wandb/wandb/sdk/wandb_metric.py
imports: import logging
  from typing import Callable, Optional, Sequence, Tuple
  from wandb.proto import wandb_internal_pb2
label_desc: Use image node_id 1 to create a new Metric object  with example: obj = Metric(name, step_metric, step_sync, hidden, summary, goal, overwrite)