class_docstr: Metric parser for model monitor model quality bianry/muliti-classification data
class_docstr_tok: ["Metric","parser","for","model","monitor","model","quality","bianry\/muliti-classification","data"]
docstr: Translate the receiver operating characteristic curve to a metric entry.
  
  Args:
      metric_name (_type_): Metric name.
      raw_data (_type_): Raw metric data.
docstr_tok: ["Translate","the","receiver","operating","characteristic","curve","to","a","metric","entry",".","Args",":","metric_name","(","_type_",")",":","Metric","name",".","raw_data","(","_type_",")",":","Raw","metric","data","."]
code: def _parse_receiver_operating_characteristic_curve(
      self, metric_name, raw_data
  ):
      """Translate the receiver operating characteristic curve to a metric entry.
  
      Args:
          metric_name (_type_): Metric name.
          raw_data (_type_): Raw metric data.
      """
      metric_data = []
      if metric_name != "receiver_operating_characteristic_curve":
          return metric_data
  
      metric_data.extend(
          [
              {
                  "name": metric_name,
                  "type": "linear_graph",
                  "x_axis_name": "false_positive_rates",
                  "y_axis_name": "true_positive_rates",
                  "value": [
                      list(i)
                      for i in zip(
                          raw_data["false_positive_rates"],
                          raw_data["true_positive_rates"],
                      )
                  ],
              }
          ]
      )
      return metric_data
  
imports: from __future__ import absolute_import
  from abc import ABC, abstractmethod
  from enum import Enum
  from collections import defaultdict
  from typing import Union, List
  from sagemaker.model_card.schema_constraints import PYTHON_TYPE_TO_METRIC_VALUE_TYPE, METRIC_VALUE_TYPE_MAP, MetricTypeEnum
label_desc: Use image node_id 4 for calling the ClassificationParser obj's underlying member method code with example usage: obj._parse_receiver_operating_characteristic_curve(metric_name, raw_data) and returns: metric_data, metric_data