docstr: Returns a confusion matrix based on H2O's default prediction threshold for a dataset.
  
  :param H2OFrame data: the frame with the prediction results for which the confusion matrix should be extracted.
docstr_tok: ["Returns","a","confusion","matrix","based","on","H2O","'s","default","prediction","threshold","for","a","dataset",".",":","param","H2OFrame","data",":","the","frame","with","the","prediction","results","for","which","the","confusion","matrix","should","be","extracted","."]
code: def confusion_matrix(self, data):
      """
      Returns a confusion matrix based on H2O's default prediction threshold for a dataset.
  
      :param H2OFrame data: the frame with the prediction results for which the confusion matrix should be extracted.
      """
      assert_is_type(data, H2OFrame)
      j = h2o.api(
          "POST /3/Predictions/models/%s/frames/%s"
          % (self._id, data.frame_id)
      )
      return j["model_metrics"][0]["cm"]["table"]
  
file_path: h2o-3/h2o-py/h2o/model/models/ordinal.py
imports: import h2o
  from h2o.exceptions import H2OValueError
  from h2o.frame import H2OFrame
  from h2o.model import ModelBase
  from h2o.model.extensions import has_extension
  from h2o.utils.compatibility import *
  from h2o.utils.typechecks import assert_is_type
label_desc: Use image node_id 1 for calling the H2OOrdinalModel obj's underlying member method code with example usage: obj.confusion_matrix(data) and returns: j