docstr: Plot Gains/Lift curves.
  
  :param type: One of:
  
      - "both" (default)
      - "gains"
      - "lift"
      
  :param xval: if ``True``, use cross-validation metrics.
  :param server: if ``True``, generate plot inline using matplotlib's "Agg" backend.
  :param save_plot_path: filename to save the plot to.
  :param plot: ``True`` to plot curve, ``False`` to get a gains lift table
  
  :returns: Gains lift table + the resulting plot (can be accessed using ``result.figure()``)
docstr_tok: ["Plot","Gains\/Lift","curves",".",":","param","type",":","One","of",":","-","``","both","''","(","default",")","-","``","gains","''","-","``","lift","''",":","param","xval",":","if","``","True","``",",","use","cross-validation","metrics",".",":","param","server",":","if","``","True","``",",","generate","plot","inline","using","matplotlib","'s","``","Agg","''","backend",".",":","param","save_plot_path",":","filename","to","save","the","plot","to",".",":","param","plot",":","``","True","``","to","plot","curve",",","``","False","``","to","get","a","gains","lift","table",":","returns",":","Gains","lift","table","+","the","resulting","plot","(","can","be","accessed","using","``","result.figure","(",")","``",")"]
code: def gains_lift_plot(
      self,
      type="both",
      xval=False,
      server=False,
      save_plot_path=None,
      plot=True,
  ):
      """
      Plot Gains/Lift curves.
  
      :param type: One of:
  
          - "both" (default)
          - "gains"
          - "lift"
  
      :param xval: if ``True``, use cross-validation metrics.
      :param server: if ``True``, generate plot inline using matplotlib's "Agg" backend.
      :param save_plot_path: filename to save the plot to.
      :param plot: ``True`` to plot curve, ``False`` to get a gains lift table
  
      :returns: Gains lift table + the resulting plot (can be accessed using ``result.figure()``)
      """
      return self._delegate_to_metrics(
          "gains_lift_plot",
          type=type,
          xval=xval,
          server=server,
          save_plot_path=save_plot_path,
          plot=plot,
      )
  
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 24 for calling the H2OBinomialModel obj's underlying member method code with example usage: obj.gains_lift_plot(type, xval, server, save_plot_path, plot) and returns: self