h2o-py/h2o/grid/grid_search.py
def summary(self, header=True):
        """Print a detailed summary of the explored models."""
        table = []
        for model in self.models:
            model_summary = model._model_json["output"]["model_summary"]
            r_values = list(model_summary.cell_values[0])
            r_values[0] = model.model_id
            table.append(r_values)

        # if h2o.can_use_pandas():
        #  import pandas
        #  pandas.options.display.max_rows = 20
        #  print pandas.DataFrame(table,columns=self.col_header)
        #  return
        print()
        if header:
            print('Grid Summary:')
        print()
        H2ODisplay(table, ['Model Id'] + model_summary.col_header[1:], numalign="left", stralign="left")
def summary(self, header=True):
        """Print a detailed summary of the explored models."""
        table = []
        for model in self.models:
            model_summary = model._model_json["output"]["model_summary"]
            r_values = list(model_summary.cell_values[0])
            r_values[0] = model.model_id
            table.append(r_values)

        # if h2o.can_use_pandas():
        #  import pandas
        #  pandas.options.display.max_rows = 20
        #  print pandas.DataFrame(table,columns=self.col_header)
        #  return
        print()
        if header:
            print('Grid Summary:')
        print()
        H2ODisplay(table, ['Model Id'] + model_summary.col_header[1:], numalign="left", stralign="left")
def summary ( self , header = True ) : table = [ ] for model in self . models : model_summary = model . _model_json [ "output" ] [ "model_summary" ] r_values = list ( model_summary . cell_values [ 0 ] ) r_values [ 0 ] = model . model_id table . append ( r_values ) # if h2o.can_use_pandas(): #  import pandas #  pandas.options.display.max_rows = 20 #  print pandas.DataFrame(table,columns=self.col_header) #  return print ( ) if header : print ( 'Grid Summary:' ) print ( ) H2ODisplay ( table , [ 'Model Id' ] + model_summary . col_header [ 1 : ] , numalign = "left" , stralign = "left" )
Print a detailed summary of the explored models.
Print a detailed summary of the explored models .