code: def _match_class_pos(self):
          
          # TODO: add notfitted warnings
          if self.kernel.classes_.shape[0] != 2:
              raise ValueError("Number of classes is {}, expected 2.".format(
                  self.kernel.classes_.shape[0]))
  
          # # get the position of match probabilities
          # classes = list(self.kernel.classes_)
          # return classes.index(1)
  
          return 1
docs: Return the position of the match class.