class_docstr: Represents the history of a single metric.
class_docstr_tok: ["Represents","the","history","of","a","single","metric","."]
code: def __init__(self, history, name):
      self.name = name
      self.steps = history.steps
      self.data = np.array(
          [history.history[s].get(name) for s in self.steps]
      )
  
imports: import math
  import random
  import io
  import itertools
  import time
  import datetime
  import pickle
  import numpy
  import matplotlib.pyplot
  import matplotlib
  from .None import utils
label_desc: Use image node_id 1 to create a new Metric object  with example: obj = Metric(history, name)