- ResultGrid.get_dataframe(filter_metric: Optional[str] = None, filter_mode: Optional[str] = None) pandas.core.frame.DataFrame [source]#
Return dataframe of all trials with their configs and reported results.
Per default, this returns the last reported results for each trial.
filter_modeare set, the results from each trial are filtered for this metric and mode. For example, if
filter_mode="max", for each trial, every received result is checked, and the one where
some_metricis maximal is returned.
result_grid = Tuner.fit(...) # Get last reported results per trial df = result_grid.get_dataframe() # Get best ever reported accuracy per trial df = result_grid.get_dataframe( filter_metric="accuracy", filter_mode="max" )
filter_metric – Metric to filter best result for.
filter_mode – If
filter_metricis given, one of
["min", "max"]to specify if we should find the minimum or maximum result.
Pandas DataFrame with each trial as a row and their results as columns.