docstr: Retrieve the mean per class error across all classes
  
  If all are ``False`` (default), then return the training metric value.
  If more than one options is set to ``True``, then return a dictionary of metrics where the keys are "train",
  "valid", and "xval".
  
  :param bool train: If ``True``, return the ``mean_per_class_error`` value for the training data.
  :param bool valid: If ``True``, return the ``mean_per_class_error`` value for the validation data.
  :param bool xval:  If ``True``, return the ``mean_per_class_error`` value for each of the cross-validated splits.
  
  :returns: The ``mean_per_class_error`` values for the specified key(s).
docstr_tok: ["Retrieve","the","mean","per","class","error","across","all","classes","If","all","are","``","False","``","(","default",")",",","then","return","the","training","metric","value",".","If","more","than","one","options","is","set","to","``","True","``",",","then","return","a","dictionary","of","metrics","where","the","keys","are","``","train","''",",","''","valid","''",",","and","``","xval","''",".",":","param","bool","train",":","If","``","True","``",",","return","the","``","mean_per_class_error","``","value","for","the","training","data",".",":","param","bool","valid",":","If","``","True","``",",","return","the","``","mean_per_class_error","``","value","for","the","validation","data",".",":","param","bool","xval",":","If","``","True","``",",","return","the","``","mean_per_class_error","``","value","for","each","of","the","cross-validated","splits",".",":","returns",":","The","``","mean_per_class_error","``","values","for","the","specified","key","(","s",")","."]
code: def mean_per_class_error(self, train=False, valid=False, xval=False):
      """
      Retrieve the mean per class error across all classes
  
      If all are ``False`` (default), then return the training metric value.
      If more than one options is set to ``True``, then return a dictionary of metrics where the keys are "train",
      "valid", and "xval".
  
      :param bool train: If ``True``, return the ``mean_per_class_error`` value for the training data.
      :param bool valid: If ``True``, return the ``mean_per_class_error`` value for the validation data.
      :param bool xval:  If ``True``, return the ``mean_per_class_error`` value for each of the cross-validated splits.
  
      :returns: The ``mean_per_class_error`` values for the specified key(s).
      """
      tm = ModelBase._get_metrics(self, train, valid, xval)
      m = {}
      for k, v in zip(list(tm.keys()), list(tm.values())):
          m[k] = None if v is None else v.mean_per_class_error()
      return list(m.values())[0] if len(m) == 1 else m
  
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 3 for calling the H2OOrdinalModel obj's underlying member method code with example usage: obj.mean_per_class_error(train, valid, xval) and returns: unknown