ray.tune.ExperimentAnalysis.dataframe
ray.tune.ExperimentAnalysis.dataframe#
- ExperimentAnalysis.dataframe(metric: Optional[str] = None, mode: Optional[str] = None) pandas.core.frame.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
metricandmode: Ifmode=min, it returns the result with the lowest ever observedmetricfor this trial (this is not necessarily the last)! Formode=max, it’s the highest, respectively. Ifmetric=Noneormode=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