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 a binary confusion matrix from
  a confusion matrix
docstr_tok: ["Returns","a","binary","confusion","matrix","from","a","confusion","matrix"]
code: def binarize(self, select):
      """Returns a binary confusion matrix from
      a confusion matrix"""
      if not isinstance(select, collections.Iterable):
          select = np.array(select)
  
      y_true_bin = self.y_true().map(lambda x: x in select)
      y_pred_bin = self.y_pred().map(lambda x: x in select)
  
      from pandas_ml.confusion_matrix.bcm import BinaryConfusionMatrix
  
      binary_cm = BinaryConfusionMatrix(y_true_bin, y_pred_bin)
  
      return binary_cm
  
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 19 for calling the ConfusionMatrixAbstract obj's underlying member method code with example usage: obj.binarize(select) and returns: binary_cm