Skip to content

Commit

Permalink
[Train] Report only once in SklearnTrainer (ray-project#30593)
Browse files Browse the repository at this point in the history
Sets "done": True in the SklearnTrainer report so that it only print the results only once.

Signed-off-by: Antoni Baum <antoni.baum@protonmail.com>
Signed-off-by: Weichen Xu <weichen.xu@databricks.com>
  • Loading branch information
Yard1 authored and WeichenXu123 committed Dec 19, 2022
1 parent eb317a6 commit b604008
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/ray/train/sklearn/sklearn_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,5 +433,6 @@ def training_loop(self) -> None:
**validation_set_scores,
**cv_scores,
"fit_time": fit_time,
"done": True,
}
self._report(results)

0 comments on commit b604008

Please sign in to comment.