class_docstr: Abstract class for confusion matrix
  
  You shouldn't instantiate this class.
  You might instantiate ConfusionMatrix or BinaryConfusionMatrix classes
class_docstr_tok: ["Abstract","class","for","confusion","matrix","You","should","n't","instantiate","this","class",".","You","might","instantiate","ConfusionMatrix","or","BinaryConfusionMatrix","classes"]
docstr: Returns name (value in dict d_name
  or key if key doesn't exists in d_name)
docstr_tok: ["Returns","name","(","value","in","dict","d_name","or","key","if","key","does","n't","exists","in","d_name",")"]
code: def _name_from_dict(self, key, d_name):
      """
      Returns name (value in dict d_name
      or key if key doesn't exists in d_name)
      """
      try:
          return d_name[key]
      except (KeyError, TypeError):
          return key
  
imports: import numpy
  import pandas
  import collections
  import pandas_ml
  from pandas_ml.confusion_matrix.stats import binom_interval, class_agreement, prop_test
label_desc: Use image node_id 24 for calling the ConfusionMatrixAbstract obj's underlying member method code with example usage: obj._name_from_dict(key, d_name) and returns: d_name, key