class_docstr: Binary confusion matrix class
docstr: Returns class for a given direction
  direction being a boolean
  True for positive class
  False for negative class
docstr_tok: ["Returns","class","for","a","given","direction","direction","being","a","boolean","True","for","positive","class","False","for","negative","class"]
code: def _class(self, direction):
      """Returns class for a given direction
      direction being a boolean
      True for positive class
      False for negative class"""
      if direction:
          return self.pos_class
      else:
          return self.neg_class
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import math
  import numpy
  import pandas
  import collections
  from pandas_ml.confusion_matrix.abstract import ConfusionMatrixAbstract
label_desc: Use image node_id 4 for calling the BinaryConfusionMatrix obj's underlying member method code with example usage: obj._class(direction) and returns: self, self