mirror of
https://github.com/wassname/ray.git
synced 2026-07-22 13:00:49 +08:00
[tune] Fix get_best_logdir behaviour (#5429)
* Fix get_best_logdir behaviour * addtest
This commit is contained in:
@@ -75,7 +75,7 @@ class Analysis(object):
|
||||
mode (str): One of [min, max].
|
||||
|
||||
"""
|
||||
df = self.dataframe()
|
||||
df = self.dataframe(metric=metric, mode=mode)
|
||||
if mode == "max":
|
||||
return df.iloc[df[metric].idxmax()].logdir
|
||||
elif mode == "min":
|
||||
|
||||
Reference in New Issue
Block a user