docstr: Retrieve the top model from an H2OAutoML object
  
  :return: an H2O model
  
  :examples:
  
  >>> # Set up an H2OAutoML object
  >>> aml = H2OAutoML(max_runtime_secs=30)
  >>> # Launch an AutoML run
  >>> aml.train(y=y, training_frame=train)
  >>> # Get the best model in the AutoML Leaderboard
  >>> aml.leader
  >>>
  >>> # Get AutoML object by `project_name`
  >>> get_aml = h2o.automl.get_automl(aml.project_name)
  >>> # Get the best model in the AutoML Leaderboard
  >>> get_aml.leader
docstr_tok: ["Retrieve","the","top","model","from","an","H2OAutoML","object",":","return",":","an","H2O","model",":","examples",":",">",">",">","#","Set","up","an","H2OAutoML","object",">",">",">","aml","=","H2OAutoML","(","max_runtime_secs=30",")",">",">",">","#","Launch","an","AutoML","run",">",">",">","aml.train","(","y=y",",","training_frame=train",")",">",">",">","#","Get","the","best","model","in","the","AutoML","Leaderboard",">",">",">","aml.leader",">",">",">",">",">",">","#","Get","AutoML","object","by","`","project_name","`",">",">",">","get_aml","=","h2o.automl.get_automl","(","aml.project_name",")",">",">",">","#","Get","the","best","model","in","the","AutoML","Leaderboard",">",">",">","get_aml.leader"]
code: def leader(self):
      """
      Retrieve the top model from an H2OAutoML object
  
      :return: an H2O model
  
      :examples:
  
      >>> # Set up an H2OAutoML object
      >>> aml = H2OAutoML(max_runtime_secs=30)
      >>> # Launch an AutoML run
      >>> aml.train(y=y, training_frame=train)
      >>> # Get the best model in the AutoML Leaderboard
      >>> aml.leader
      >>>
      >>> # Get AutoML object by `project_name`
      >>> get_aml = h2o.automl.get_automl(aml.project_name)
      >>> # Get the best model in the AutoML Leaderboard
      >>> get_aml.leader
      """
      pass
  
imports: import h2o
  from h2o.base import Keyed
  from h2o.exceptions import H2OValueError
  from h2o.job import H2OJob
  from h2o.model import ModelBase
  from h2o.utils.compatibility import *
  from h2o.utils.typechecks import assert_is_type, is_type
label_desc: Use image node_id 5 for calling the H2OAutoMLBaseMixin obj's underlying member method code with example usage: obj.leader() without return types