class_docstr: Get streaming accuracy statistics every time a new command is founded.
  
  Attributes:
    _how_many_gt: How many ground truths.
    _how_many_gt_matched: How many ground truths have been matched.
    _how_many_fp: How many commands have been fired as false positive.
    _how_many_c: How many commands have been fired correctly.
    _how_many_w: How many commands have been fired wrongly.
    _gt_occurrence: A list to record which commands and when it occurs in the
      input audio stream.
    _previous_c: A variable to record the last status of _how_many_c.
    _previous_w: A variable to record the last status of _how_many_w.
    _previous_fp: A variable to record the last status of _how_many_fp.
docstr: Init StreamingAccuracyStats with void or zero values.
code: def __init__(self):
      """Init StreamingAccuracyStats with void or zero values."""
      self._how_many_gt = 0
      self._how_many_gt_matched = 0
      self._how_many_fp = 0
      self._how_many_c = 0
      self._how_many_w = 0
      self._gt_occurrence = []
      self._previous_c = 0
      self._previous_w = 0
      self._previous_fp = 0
  
file_path: tensorflow-upstream/tensorflow/examples/speech_commands/accuracy_utils.py
imports: import numpy
  import tensorflow
label_desc: Use image node_id 1 to create a new StreamingAccuracyStats object from inherited base classes: object with example: obj = StreamingAccuracyStats()