docstr: Transform probabilities back to labels.
  
  # Arguments
      data: numpy.ndarray. The output probabilities of the classification
          head.
  
  # Returns
      numpy.ndarray. The original labels.
docstr_tok: ["Transform","probabilities","back","to","labels",".","#","Arguments","data",":","numpy.ndarray",".","The","output","probabilities","of","the","classification","head",".","#","Returns","numpy.ndarray",".","The","original","labels","."]
code: def postprocess(self, data):
      """Transform probabilities back to labels.
  
      # Arguments
          data: numpy.ndarray. The output probabilities of the classification
              head.
  
      # Returns
          numpy.ndarray. The original labels.
      """
      return np.array(
          list(
              map(
                  lambda x: self.labels[x],
                  np.argmax(np.array(data), axis=1),
              )
          )
      ).reshape(-1, 1)
  
file_path: autokeras/autokeras/preprocessors/encoders.py
imports: import numpy
  import tensorflow
  from autokeras.engine import preprocessor
label_desc: Use image node_id 2 for calling the OneHotEncoder obj's underlying member method code with example usage: obj.postprocess(data) and returns: np