class_docstr: Metrics for MIDI heuristic.
class_docstr_tok: ["Metrics","for","MIDI","heuristic","."]
code: def _compute_heuristic_notes(self, outputs):
      return heuristics.segment_notes_batch(
          binarize_f=heuristics.midi_heuristic,
          pick_f0_f=heuristics.mean_f0,
          pick_amps_f=heuristics.median_amps,
          controls_batch=outputs,
      )
  
imports: import ddsp
  from ddsp.training import heuristics
  from ddsp.training import metrics
  from ddsp.training import summaries
  import gin
  import numpy
  import tensorflow.compat.v2
label_desc: Use image node_id 2 for calling the MidiHeuristicEvaluator obj's underlying member method code with example usage: obj._compute_heuristic_notes(outputs) and returns: heuristics