Unverified Commit dabc85d1 authored by Kai Fricke's avatar Kai Fricke Committed by GitHub
Browse files

Report Tune metrics in final evaluation (#7507)

parent 9a92afb6
...@@ -124,8 +124,7 @@ def run_hp_search_ray(trainer, n_trials: int, direction: str, **kwargs) -> BestR ...@@ -124,8 +124,7 @@ def run_hp_search_ray(trainer, n_trials: int, direction: str, **kwargs) -> BestR
metrics = trainer.evaluate() metrics = trainer.evaluate()
trainer.objective = trainer.compute_objective(metrics) trainer.objective = trainer.compute_objective(metrics)
trainer._tune_save_checkpoint() trainer._tune_save_checkpoint()
ray.tune.report(objective=trainer.objective) ray.tune.report(objective=trainer.objective, **metrics, done=True)
return trainer.objective
# The model and TensorBoard writer do not pickle so we have to remove them (if they exists) # The model and TensorBoard writer do not pickle so we have to remove them (if they exists)
# while doing the ray hp search. # while doing the ray hp search.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment