(features, labels, frame_probs, onset_probs, frame_predictions,
                onset_predictions, offset_predictions, velocity_values,
                hparams)
Return metrics values ops.
Return metrics values ops.
Return metrics values ops .
def get_metrics(features, labels, frame_probs, onset_probs, frame_predictions,
                onset_predictions, offset_predictions, velocity_values,
                hparams):
  """Return metrics values ops."""
  if hparams.drums_only:
    return _drums_only_metric_ops(
        features=features,
        labels=labels,
        frame_probs=frame_probs,
        onset_probs=onset_probs,
        frame_predictions=frame_predictions,
        onset_predictions=onset_predictions,
        offset_predictions=offset_predictions,
        velocity_values=velocity_values,
        hparams=hparams)
  else:
    return metrics.define_metrics(
        frame_probs=frame_probs,
        onset_probs=onset_probs,
        frame_predictions=frame_predictions,
        onset_predictions=onset_predictions,
        offset_predictions=offset_predictions,
        velocity_values=velocity_values,
        length=features.length,
        sequence_label=labels.note_sequence,
        frame_labels=labels.labels,
        sequence_id=features.sequence_id,
        hparams=hparams)
def get_metrics ( features , labels , frame_probs , onset_probs , frame_predictions , onset_predictions , offset_predictions , velocity_values , hparams ) : if hparams . drums_only : return _drums_only_metric_ops ( features = features , labels = labels , frame_probs = frame_probs , onset_probs = onset_probs , frame_predictions = frame_predictions , onset_predictions = onset_predictions , offset_predictions = offset_predictions , velocity_values = velocity_values , hparams = hparams ) else : return metrics . define_metrics ( frame_probs = frame_probs , onset_probs = onset_probs , frame_predictions = frame_predictions , onset_predictions = onset_predictions , offset_predictions = offset_predictions , velocity_values = velocity_values , length = features . length , sequence_label = labels . note_sequence , frame_labels = labels . labels , sequence_id = features . sequence_id , hparams = hparams )