ray.tune.ExperimentAnalysis.dataframe#
- 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
andmode
: Ifmode=min
, it returns the result with the lowest ever observedmetric
for this trial (this is not necessarily the last)! Formode=max
, it’s the highest, respectively. Ifmetric=None
ormode=None
, the last result will be returned.- Parameters:
metric – Key for trial info to order on. If None, uses last result.
mode – One of [None, “min”, “max”].
- Returns:
Constructed from a result dict of each trial.
- Return type:
pd.DataFrame