ExperimentAnalysis.dataframe(metric: str | None = None, mode: str | None = None) pandas.DataFrame[source]#

Returns a pandas.DataFrame object constructed from the trials.

This function will look through all observed results of each trial and return the one corresponding to the passed metric and mode: If mode=min, it returns the result with the lowest ever observed metric for this trial (this is not necessarily the last)! For mode=max, it’s the highest, respectively. If metric=None or mode=None, the last result will be returned.

  • metric – Key for trial info to order on. If None, uses last result.

  • mode – One of [None, “min”, “max”].


Constructed from a result dict of each trial.

Return type: