class_docstr: Calculate confusion matrix metrics for each subgroup
  
  Parameters
  -----------
  sub_confusion_matrix : SubgroupConfusionMatrix
      Object with calculated confusion matrix values for each subgroup
  
  Attributes
  -----------
  subgroup_confusion_matrix_metrics : dict
      Dictionary with confusion matrix metrics for each subgroup
code: def to_horizontal_DataFrame(self) -> pd.DataFrame:
      metrics = self.subgroup_confusion_matrix_metrics
      return pd.DataFrame(metrics).transpose()
  
imports: from copy import deepcopy
  import numpy
  import pandas
  from .None import checks
  from ...None import _global_checks
  from ..._explainer import helper
  from ...model_explanations._model_performance import utils
label_desc: Use image node_id 3 for calling the SubgroupConfusionMatrixMetrics obj's underlying member method code with example usage: obj.to_horizontal_DataFrame() and returns: pd