docstr: Return the coordinates of the ROC curve for a given set of data.
  
  The coordinates are two-tuples containing the false positive rates as a list and true positive rates as a list.
  If all are ``False`` (default), then return is the training data. If more than one ROC
  curve is requested, the data is returned as a dictionary of two-tuples.
  
  :param bool train: If ``True``, return the ROC value for the training data.
  :param bool valid: If ``True``, return the ROC value for the validation data.
  :param bool xval: If ``True``, return the ROC value for each of the cross-validated splits.
  
  :returns: The ROC values for the specified key(s).
  
  :examples:
  
  >>> cars = h2o.import_file("https://s3.amazonaws.com/h2o-public-test-data/smalldata/junit/cars_20mpg.csv")
  >>> cars["economy_20mpg"] = cars["economy_20mpg"].asfactor()
  >>> r = cars[0].runif()
  >>> train = cars[r > .2]
  >>> valid = cars[r <=.2]
  >>> response_col = "economy_20mpg"
  >>> distribution = "bernoulli"
  >>> predictors = ["displacement", "power", "weight", "acceleration", "year"]
  >>> from h2o.estimators.gbm import H2OGradientBoostingEstimator
  >>> gbm = H2OGradientBoostingEstimator(nfolds=3,
  ...                                    distribution=distribution,
  ...                                    fold_assignment="Random")
  >>> gbm.train(y=response_col,
  ...           x=predictors,
  ...           validation_frame=valid,
  ...           training_frame=train)
  >>> gbm.roc() # <- Default: return training data
  >>> gbm.roc(train=True, valid=True, xval=True)
docstr_tok: ["Return","the","coordinates","of","the","ROC","curve","for","a","given","set","of","data",".","The","coordinates","are","two-tuples","containing","the","false","positive","rates","as","a","list","and","true","positive","rates","as","a","list",".","If","all","are","``","False","``","(","default",")",",","then","return","is","the","training","data",".","If","more","than","one","ROC","curve","is","requested",",","the","data","is","returned","as","a","dictionary","of","two-tuples",".",":","param","bool","train",":","If","``","True","``",",","return","the","ROC","value","for","the","training","data",".",":","param","bool","valid",":","If","``","True","``",",","return","the","ROC","value","for","the","validation","data",".",":","param","bool","xval",":","If","``","True","``",",","return","the","ROC","value","for","each","of","the","cross-validated","splits",".",":","returns",":","The","ROC","values","for","the","specified","key","(","s",")",".",":","examples",":",">",">",">","cars","=","h2o.import_file","(","``","https",":","\/\/s3.amazonaws.com\/h2o-public-test-data\/smalldata\/junit\/cars_20mpg.csv","''",")",">",">",">","cars","[","``","economy_20mpg","''","]","=","cars","[","``","economy_20mpg","''","]",".asfactor","(",")",">",">",">","r","=","cars","[","0","]",".runif","(",")",">",">",">","train","=","cars","[","r",">",".2","]",">",">",">","valid","=","cars","[","r","<","=.2","]",">",">",">","response_col","=","``","economy_20mpg","''",">",">",">","distribution","=","``","bernoulli","''",">",">",">","predictors","=","[","``","displacement","''",",","``","power","''",",","``","weight","''",",","``","acceleration","''",",","``","year","''","]",">",">",">","from","h2o.estimators.gbm","import","H2OGradientBoostingEstimator",">",">",">","gbm","=","H2OGradientBoostingEstimator","(","nfolds=3",",","...","distribution=distribution",",","...","fold_assignment=","''","Random","''",")",">",">",">","gbm.train","(","y=response_col",",","...","x=predictors",",","...","validation_frame=valid",",","...","training_frame=train",")",">",">",">","gbm.roc","(",")","#","<","-","Default",":","return","training","data",">",">",">","gbm.roc","(","train=True",",","valid=True",",","xval=True",")"]
code: def roc(self, train=False, valid=False, xval=False):
      """
      Return the coordinates of the ROC curve for a given set of data.
  
      The coordinates are two-tuples containing the false positive rates as a list and true positive rates as a list.
      If all are ``False`` (default), then return is the training data. If more than one ROC
      curve is requested, the data is returned as a dictionary of two-tuples.
  
      :param bool train: If ``True``, return the ROC value for the training data.
      :param bool valid: If ``True``, return the ROC value for the validation data.
      :param bool xval: If ``True``, return the ROC value for each of the cross-validated splits.
  
      :returns: The ROC values for the specified key(s).
  
      :examples:
  
      >>> cars = h2o.import_file("https://s3.amazonaws.com/h2o-public-test-data/smalldata/junit/cars_20mpg.csv")
      >>> cars["economy_20mpg"] = cars["economy_20mpg"].asfactor()
      >>> r = cars[0].runif()
      >>> train = cars[r > .2]
      >>> valid = cars[r <=.2]
      >>> response_col = "economy_20mpg"
      >>> distribution = "bernoulli"
      >>> predictors = ["displacement", "power", "weight", "acceleration", "year"]
      >>> from h2o.estimators.gbm import H2OGradientBoostingEstimator
      >>> gbm = H2OGradientBoostingEstimator(nfolds=3,
      ...                                    distribution=distribution,
      ...                                    fold_assignment="Random")
      >>> gbm.train(y=response_col,
      ...           x=predictors,
      ...           validation_frame=valid,
      ...           training_frame=train)
      >>> gbm.roc() # <- Default: return training data
      >>> gbm.roc(train=True, valid=True, xval=True)
      """
      return self._delegate_to_metrics("roc", train, valid, xval)
  
imports: from h2o.utils.compatibility import *
  from h2o.exceptions import H2OValueError
  from h2o.model import ModelBase
  from h2o.model.extensions import has_extension
  from h2o.utils.metaclass import deprecated_params
  from h2o.utils.typechecks import assert_is_type
label_desc: Use image node_id 22 for calling the H2OBinomialModel obj's underlying member method code with example usage: obj.roc(train, valid, xval) and returns: self